[pve-devel] [PATCH 11/13] api2: snapshot_list : return template flag
Alexandre Derumier
aderumier at odiso.com
Tue Jan 8 15:44: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 c8cb9f3..f5a48ce 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -2153,12 +2153,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