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:
Dag Wieers 2018-02-13 19:07:23 +01:00 committed by GitHub
parent 01bd9759e3
commit 7897558b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 7 deletions

View file

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