[pve-devel] [PATCH 10/16] api2: snapshot_list : return template flag

Alexandre Derumier aderumier at odiso.com
Tue Jan 22 10:11:52 CET 2013


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 63dbd33..ab8eaa7 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -2005,12 +2005,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