mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 06:11:30 +00:00
Fix RuntimeError on Python 3.8.
This commit is contained in:
@@ -252,13 +252,13 @@ class Interfaces(FactsBase):
|
||||
data = self.responses[0]
|
||||
interfaces = self.parse_interfaces(data)
|
||||
|
||||
for key in interfaces.keys():
|
||||
for key in list(interfaces.keys()):
|
||||
if "ManagementEthernet" in key:
|
||||
temp_parsed = interfaces[key]
|
||||
del interfaces[key]
|
||||
interfaces.update(self.parse_mgmt_interfaces(temp_parsed))
|
||||
|
||||
for key in interfaces.keys():
|
||||
for key in list(interfaces.keys()):
|
||||
if "Vlan" in key:
|
||||
temp_parsed = interfaces[key]
|
||||
del interfaces[key]
|
||||
|
||||
@@ -326,7 +326,7 @@ class NetAppONTAPQuotas(object):
|
||||
elif cd_action == 'delete':
|
||||
self.quota_entry_delete()
|
||||
elif modify_quota is not None:
|
||||
for key in modify_quota:
|
||||
for key in list(modify_quota):
|
||||
modify_quota[key.replace("_", "-")] = modify_quota.pop(key)
|
||||
self.quota_entry_modify(modify_quota)
|
||||
if modify_quota_status is not None:
|
||||
|
||||
Reference in New Issue
Block a user