[pve-devel] [PATCH 09/11] api2: snapshot_list : return template flag

Alexandre Derumier aderumier at odiso.com
Tue Dec 18 10:14:58 CET 2012


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Qemu.pm |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index e58f8b0..fd19592 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -2068,12 +2068,14 @@ __PACKAGE__->register_method({
 	    };
 	    $item->{parent} = $d->{parent} if $d->{parent};
 	    $item->{snapstate} = $d->{snapstate} if $d->{snapstate};
+	    $item->{template} = $d->{template} if $d->{template};
 	    push @$res, $item;
 	}
 
 	my $running = PVE::QemuServer::check_running($vmid, 1) ? 1 : 0;
 	my $current = { name => 'current', digest => $conf->{digest}, running => $running };
 	$current->{parent} = $conf->{parent} if $conf->{parent};
+	$current->{template} = $conf->{template} if $conf->{template};
 
 	push @$res, $current;
 
-- 
1.7.10.4




More information about the pve-devel mailing list