From 35a8d1f73a54d468782547020975b79a77bffda2 Mon Sep 17 00:00:00 2001 From: Thomas Wiest Date: Fri, 13 Mar 2015 17:04:29 -0400 Subject: made the bug fix more python-esq --- bin/awsutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3