aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-07 16:06:12 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-18 16:10:06 -0400
commitf2daa2d489d7b4f94288d6fafb8072fb1ea384a9 (patch)
treee023179619115488d860dffd2ad5948ad95c8f2b /scripts/qmp
parentde14ba24f3f31329debdfac9fa73c8d78e30399b (diff)
downloadqemu-f2daa2d489d7b4f94288d6fafb8072fb1ea384a9.zip
qemu-f2daa2d489d7b4f94288d6fafb8072fb1ea384a9.tar.gz
qemu-f2daa2d489d7b4f94288d6fafb8072fb1ea384a9.tar.bz2
scripts/qmp-shell: fix connect method signature
It needs to match the parent's signature -- the negotiate parameter must be optional. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210607200649.1840382-6-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qmp')
-rwxr-xr-xscripts/qmp/qmp-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 413dd4d..04ca6a2 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -278,7 +278,7 @@ class QMPShell(qmp.QEMUMonitorProtocol):
self._print(resp)
return True
- def connect(self, negotiate):
+ def connect(self, negotiate: bool = True):
self._greeting = super(QMPShell, self).connect(negotiate)
self.__completer_setup()