summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohn Snow2021-06-07 22:06:13 +0200
committerJohn Snow2021-06-18 22:10:06 +0200
commit9669c8289c8f16eb97ac887ab09598925f4712ce (patch)
treefc77ebeb0c4e0ff1b4f1ff15346eb5d9df3f97fa /scripts
parentscripts/qmp-shell: fix connect method signature (diff)
downloadqemu-9669c8289c8f16eb97ac887ab09598925f4712ce.tar.gz
qemu-9669c8289c8f16eb97ac887ab09598925f4712ce.tar.xz
qemu-9669c8289c8f16eb97ac887ab09598925f4712ce.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/qmp/qmp-shell4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 04ca6a25ae..ae3f04534a 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -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):