[pve-devel] [PATCH qemu-server v2 2/8] add agent flag to vm status api call
Dominik Csapak
d.csapak at proxmox.com
Thu Feb 15 14:04:47 CET 2018
so that we can check in the gui if we have the agent set without
having to load the whole config
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Qemu.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index b277a26..6c9ede9 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1760,6 +1760,8 @@ __PACKAGE__->register_method({
$status->{spice} = 1 if PVE::QemuServer::vga_conf_has_spice($conf->{vga});
+ $status->{agent} = 1 if $conf->{agent};
+
return $status;
}});
--
2.11.0
More information about the pve-devel
mailing list