Skip to content

Commit

Permalink
scripts/qmp-shell: fix connect method signature
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jnsnow committed Jun 18, 2021
1 parent de14ba2 commit f2daa2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/qmp/qmp-shell
Expand Up @@ -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()

Expand Down

0 comments on commit f2daa2d

Please sign in to comment.