summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: