Use items() instead of iteritems() for Python 3 compatibility

This commit is contained in:
Tyler Sanders 2014-11-17 08:54:06 -06:00
parent 6d2c9d9960
commit d89dce2583

View File

@ -2331,11 +2331,11 @@ class NetworkAclBackend(object):
network_acl_id):
# lookup existing association for subnet and delete it
default_acl = next(value for key, value in self.network_acls.iteritems()
default_acl = next(value for key, value in self.network_acls.items()
if association_id in value.associations.keys())
subnet_id = None
for key, value in default_acl.associations.iteritems():
for key, value in default_acl.associations.items():
if key == association_id:
subnet_id = default_acl.associations[key].subnet_id
del default_acl.associations[key]