[pve-devel] [PATCH 5/7] qmpclient-qga : do not sent qmp_capabilities for qga

Alexandre Derumier aderumier at odiso.com
Sun Mar 17 16:09:05 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QMPClient.pm |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm
index 7e81e6e..39a2869 100755
--- a/PVE/QMPClient.pm
+++ b/PVE/QMPClient.pm
@@ -226,8 +226,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 = $@) {
-- 
1.7.10.4




More information about the pve-devel mailing list