aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp/qom-get
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/qmp/qom-get')
-rwxr-xr-xscripts/qmp/qom-get2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qmp/qom-get b/scripts/qmp/qom-get
index 6313f27e8e..a3f5d7660e 100755
--- a/scripts/qmp/qom-get
+++ b/scripts/qmp/qom-get
@@ -45,7 +45,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");