From 75a2a42395482811bb657a0f71235efb25c6572f Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Thu, 11 Mar 2021 11:26:47 +0100 Subject: [PATCH] vmstatus: make template property optional to avoid printing 'template: ' with 'qm status --verbose' if it's false. Signed-off-by: Fabian Ebner --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 638077c8..0bfbca4c 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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};