mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 14:29:10 -07:00
aci_spvpg: Various fixes to integration tests/modules (#36458)
* aci_spvpg: Various fixes to integration tests/modules This PR includes: - A fix in module_utils aci.py - Various fixes in integration tests * Fix typo
This commit is contained in:
parent
2b6ac4561b
commit
1720a210e9
3 changed files with 25 additions and 29 deletions
|
@ -300,7 +300,6 @@ class ACIModule(object):
|
|||
except Exception as e:
|
||||
# Expose RAW output for troubleshooting
|
||||
self.error = dict(code=-1, text="Unable to parse output as JSON, see 'raw' output. %s" % e)
|
||||
# self.error = dict(code=str(self.status), text="Request failed: %s (see 'raw' output)" % self.response)
|
||||
self.result['raw'] = rawoutput
|
||||
return
|
||||
|
||||
|
@ -324,7 +323,6 @@ class ACIModule(object):
|
|||
except Exception as e:
|
||||
# Expose RAW output for troubleshooting
|
||||
self.error = dict(code=-1, text="Unable to parse output as XML, see 'raw' output. %s" % e)
|
||||
# self.error = dict(code=str(self.status), text="Request failed: %s (see 'raw' output)" % self.response)
|
||||
self.result['raw'] = rawoutput
|
||||
return
|
||||
|
||||
|
@ -750,7 +748,8 @@ class ACIModule(object):
|
|||
"""
|
||||
update_config = {child_class: {'attributes': {}}}
|
||||
for key, value in proposed_child.items():
|
||||
if value != existing_child[key]:
|
||||
existing_field = existing_child.get(key)
|
||||
if value != existing_field:
|
||||
update_config[child_class]['attributes'][key] = value
|
||||
|
||||
if not update_config[child_class]['attributes']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue