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