Explorar o código

made the bug fix more python-esq

Thomas Wiest %!s(int64=10) %!d(string=hai) anos
pai
achega
35a8d1f73a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/awsutil.py

+ 1 - 1
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: