scripts/qmp-shell: remove shadowed variable from _print()
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>
This commit is contained in:
parent
f2daa2d489
commit
9669c8289c
|
@ -251,11 +251,11 @@ class QMPShell(qmp.QEMUMonitorProtocol):
|
||||||
self.__cli_expr(cmdargs[1:], qmpcmd['arguments'])
|
self.__cli_expr(cmdargs[1:], qmpcmd['arguments'])
|
||||||
return qmpcmd
|
return qmpcmd
|
||||||
|
|
||||||
def _print(self, qmp):
|
def _print(self, qmp_message):
|
||||||
indent = None
|
indent = None
|
||||||
if self._pretty:
|
if self._pretty:
|
||||||
indent = 4
|
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))
|
print(str(jsobj))
|
||||||
|
|
||||||
def _execute_cmd(self, cmdline):
|
def _execute_cmd(self, cmdline):
|
||||||
|
|
Loading…
Reference in New Issue