Use items() instead of iteritems() for Python 3 compatibility
This commit is contained in:
parent
6d2c9d9960
commit
d89dce2583
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue