From c6fb6a6978d4200fbc0382347ea5ebb34a7caa4a Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Sun, 17 Mar 2013 16:09:05 +0100 Subject: [PATCH] qmpclient-qga : do not sent qmp_capabilities for qga Signed-off-by: Alexandre Derumier --- PVE/QMPClient.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm index 648c51a..42231da 100755 --- a/PVE/QMPClient.pm +++ b/PVE/QMPClient.pm @@ -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 = $@) { -- 2.39.2