]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts/qmp-shell: fix connect method signature
authorJohn Snow <jsnow@redhat.com>
Mon, 7 Jun 2021 20:06:12 +0000 (16:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:06 +0000 (16:10 -0400)
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>
scripts/qmp/qmp-shell

index 413dd4d2de0e8b49025b8dca797d1185e87afde2..04ca6a25aee5caf9f5cecbaab4de16cf543581c2 100755 (executable)
@@ -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()