[pve-devel] [PATCH 10/11] vmstatus : return template if vm is a template

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


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

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index c7a98c3..3a17e1b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1970,6 +1970,8 @@ sub vmstatus {
 	$d->{diskread} = 0;
 	$d->{diskwrite} = 0;
 
+        $d->{template} = is_template($conf, undef, 1);
+
 	$res->{$vmid} = $d;
     }
 
-- 
1.7.10.4




More information about the pve-devel mailing list