mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-24 09:10:22 -07:00
aci_aep_to_domain: Fix query all objects (#36131)
This PR includes: - A fix to the module where domain_type without domain caused havoc - A fix to the integration tests when querying all binding objects - Improvements to integration tests
This commit is contained in:
parent
01bd9759e3
commit
7897558b95
2 changed files with 20 additions and 7 deletions
|
@ -193,6 +193,9 @@ def main():
|
|||
['state', 'absent', ['aep', 'domain', 'domain_type']],
|
||||
['state', 'present', ['aep', 'domain', 'domain_type']],
|
||||
],
|
||||
required_together=[
|
||||
['domain', 'domain_type']
|
||||
],
|
||||
)
|
||||
|
||||
aep = module.params['aep']
|
||||
|
@ -217,7 +220,7 @@ def main():
|
|||
elif domain_type == 'vmm':
|
||||
domain_mo = 'uni/vmmp-{0}/dom-{1}'.format(VM_PROVIDER_MAPPING[vm_provider], domain)
|
||||
else:
|
||||
aci_domain = None
|
||||
domain_mo = None
|
||||
|
||||
aci = ACIModule(module)
|
||||
aci.construct_url(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue