]> git.proxmox.com Git - qemu-server.git/commitdiff
add agent flag to vm status api call
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Feb 2018 15:47:08 +0000 (16:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Feb 2018 08:55:15 +0000 (09:55 +0100)
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@proxmox.com>
PVE/API2/Qemu.pm

index b277a2681989344f83b5df6fb360d1c395b7ad82..6c9ede91e47f33ecad214f5563e5c1c5ce63e309 100644 (file)
@@ -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;
     }});