summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorThomas Wiest <twiest@redhat.com>2015-03-13 17:04:29 -0400
committerThomas Wiest <twiest@redhat.com>2015-03-13 17:04:29 -0400
commit35a8d1f73a54d468782547020975b79a77bffda2 (patch)
tree02eb2e2e32c060bf84fc022db9efc02d5e2a297d /bin
parent8279328096bceca3d79b51d711433991aef06bf4 (diff)
downloadopenshift-35a8d1f73a54d468782547020975b79a77bffda2.tar.gz
openshift-35a8d1f73a54d468782547020975b79a77bffda2.tar.bz2
openshift-35a8d1f73a54d468782547020975b79a77bffda2.tar.xz
openshift-35a8d1f73a54d468782547020975b79a77bffda2.zip
made the bug fix more python-esq
Diffstat (limited to 'bin')
-rw-r--r--bin/awsutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/awsutil.py b/bin/awsutil.py
index 979455c13..37259b946 100644
--- a/bin/awsutil.py
+++ b/bin/awsutil.py
@@ -88,7 +88,7 @@ class AwsUtil(object):
inst_by_env = {}
for dns, host in inv['_meta']['hostvars'].items():
# If you don't have an environment tag, we're going to ignore you
- if not host.has_key('ec2_tag_environment'):
+ if 'ec2_tag_environment' not in host:
continue
if host['ec2_tag_environment'] not in inst_by_env: