]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QMPClient.pm
qmpclient-qga : do not sent qmp_capabilities for qga
[qemu-server.git] / PVE / QMPClient.pm
index 648c51ae956214a5072c9e1138ec20ab40663608..42231dabd8a86cc4e1723b09860ba6bfbb8bc9b3 100755 (executable)
@@ -228,8 +228,12 @@ sub queue_execute {
 
        eval {
            my $fh = &$open_connection($self, $vmid, $timeout);
-           my $cmd = { execute => 'qmp_capabilities', arguments => {} };
-           unshift @{$self->{queue}->{$vmid}}, $cmd;
+
+           if(!$self->{qga}){
+               my $cmd = { execute => 'qmp_capabilities', arguments => {} };
+               unshift @{$self->{queue}->{$vmid}}, $cmd;
+           }
+
            $self->{mux}->set_timeout($fh, $timeout);
        };
        if (my $err = $@) {