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>
This commit is contained in:
John Snow 2021-06-07 16:06:12 -04:00
parent de14ba24f3
commit f2daa2d489

View File

@ -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()