Skip to content

Commit

Permalink
scripts/qmp-shell: remove shadowed variable from _print()
Browse files Browse the repository at this point in the history
Don't use 'qmp' here, which shadows the qmp module.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210607200649.1840382-7-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
  • Loading branch information
jnsnow committed Jun 18, 2021
1 parent f2daa2d commit 9669c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/qmp/qmp-shell
Expand Up @@ -251,11 +251,11 @@ class QMPShell(qmp.QEMUMonitorProtocol):
self.__cli_expr(cmdargs[1:], qmpcmd['arguments'])
return qmpcmd

def _print(self, qmp):
def _print(self, qmp_message):
indent = None
if self._pretty:
indent = 4
jsobj = json.dumps(qmp, indent=indent, sort_keys=self._pretty)
jsobj = json.dumps(qmp_message, indent=indent, sort_keys=self._pretty)
print(str(jsobj))

def _execute_cmd(self, cmdline):
Expand Down

0 comments on commit 9669c82

Please sign in to comment.