]> git.proxmox.com Git - qemu-server.git/commitdiff
vm status API: return info about spice
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 26 Jun 2013 11:37:14 +0000 (13:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 26 Jun 2013 11:37:14 +0000 (13:37 +0200)
PVE/API2/Qemu.pm

index 9a571f8aa728f0860bc50bec74f580e3fa651b9e..81669052cc42f1a8d2c9066a0a66eb95ebac2038 100644 (file)
@@ -1474,6 +1474,10 @@ __PACKAGE__->register_method({
 
        $status->{ha} = &$vm_is_ha_managed($param->{vmid});
 
+       if ($conf->{vga} && ($conf->{vga} eq 'qxl')) {
+           $status->{spice} = 1;
+       }
+
        return $status;
     }});