ACI Module: Bug Fix for Python versions > 3.6.0 (#32660)

This commit is contained in:
Jacob McGill 2017-11-15 09:20:08 -05:00 committed by Chris Alfonso
parent 239464f804
commit 64f9ced750

View file

@ -716,9 +716,10 @@ class ACIModule(object):
if child_configs: if child_configs:
children = [] children = []
for child in child_configs: for child in child_configs:
child_copy = child.copy()
has_value = False has_value = False
for root_key in child.keys(): for root_key in child_copy.keys():
for final_keys, values in child[root_key]['attributes'].items(): for final_keys, values in child_copy[root_key]['attributes'].items():
if values is None: if values is None:
child[root_key]['attributes'].pop(final_keys) child[root_key]['attributes'].pop(final_keys)
else: else: