Fix RuntimeError on Python 3.8.

This commit is contained in:
Matt Clay 2019-06-06 18:26:58 -07:00
parent b2791718e5
commit b9a0086aac
2 changed files with 3 additions and 3 deletions

View file

@ -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]

View file

@ -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: