From b9ccac8550aa842ca66592fd6f620affddcd40fe Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 9 Apr 2018 22:46:59 +0100 Subject: [PATCH] Fix incorrect RN used in module (#38249) This is backported from devel as this bug makes the module fail for VMM domains. --- lib/ansible/modules/network/aci/aci_domain_to_vlan_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/aci/aci_domain_to_vlan_pool.py b/lib/ansible/modules/network/aci/aci_domain_to_vlan_pool.py index 1064523dd1..cf637d4901 100755 --- a/lib/ansible/modules/network/aci/aci_domain_to_vlan_pool.py +++ b/lib/ansible/modules/network/aci/aci_domain_to_vlan_pool.py @@ -302,7 +302,7 @@ def main(): elif domain_type == 'vmm': domain_class = 'vmmDomP' domain_mo = 'uni/vmmp-{0}/dom-{1}'.format(VM_PROVIDER_MAPPING[vm_provider], domain) - domain_rn = 'dom-{0}'.format(domain) + domain_rn = 'vmmp-{0}/dom-{1}'.format(VM_PROVIDER_MAPPING[vm_provider], domain) # Ensure that querying all objects works when only domain_type is provided if domain is None: