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

Alexandre Derumier aderumier at odiso.com
Wed Dec 12 13:26:19 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 4d63030..089f377 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -2014,12 +2014,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