vmstatus: make template property optional

to avoid printing 'template: ' with 'qm status <id> --verbose' if it's false.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-03-11 11:26:47 +01:00 committed by Thomas Lamprecht
parent 1cb23b87b4
commit 75a2a42395

View 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};