]> git.proxmox.com Git - qemu-server.git/commitdiff
vmstatus: make template property optional
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 11 Mar 2021 10:26:47 +0000 (11:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 26 May 2021 15:40:28 +0000 (17:40 +0200)
to avoid printing 'template: ' with 'qm status <id> --verbose' if it's false.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index 638077c840af66d133a3dbc4f5c15ee00b44d5f9..0bfbca4c4d75a189500d0249a1016ef02e473bc3 100644 (file)
@@ -2678,7 +2678,7 @@ sub vmstatus {
        $d->{diskread} = 0;
        $d->{diskwrite} = 0;
 
-        $d->{template} = PVE::QemuConfig->is_template($conf);
+        $d->{template} = 1 if PVE::QemuConfig->is_template($conf);
 
        $d->{serial} = 1 if conf_has_serial($conf);
        $d->{lock} = $conf->{lock} if $conf->{lock};