aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp/qom-tree
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/qmp/qom-tree')
-rwxr-xr-xscripts/qmp/qom-tree2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qmp/qom-tree b/scripts/qmp/qom-tree
index ad4be233e6..32e708a13e 100755
--- a/scripts/qmp/qom-tree
+++ b/scripts/qmp/qom-tree
@@ -47,7 +47,7 @@ if len(args) > 0:
args = args[2:]
if not socket_path:
- if os.environ.has_key('QMP_SOCKET'):
+ if 'QMP_SOCKET' in os.environ:
socket_path = os.environ['QMP_SOCKET']
else:
usage_error("no QMP socket path or address given");