1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

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:
children = []
for child in child_configs:
child_copy = child.copy()
has_value = False
for root_key in child.keys():
for final_keys, values in child[root_key]['attributes'].items():
for root_key in child_copy.keys():
for final_keys, values in child_copy[root_key]['attributes'].items():
if values is None:
child[root_key]['attributes'].pop(final_keys)
else: