mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 04:51:50 +00:00
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:
parent
1cb23b87b4
commit
75a2a42395
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user