Fix incorrect RN used in module (#38249)

This is backported from devel as this bug makes the module fail for VMM
domains.
This commit is contained in:
Dag Wieers 2018-04-09 22:46:59 +01:00 committed by Matt Davis
parent 9d0ebfdea6
commit b9ccac8550

View file

@ -302,7 +302,7 @@ def main():
elif domain_type == 'vmm': elif domain_type == 'vmm':
domain_class = 'vmmDomP' domain_class = 'vmmDomP'
domain_mo = 'uni/vmmp-{0}/dom-{1}'.format(VM_PROVIDER_MAPPING[vm_provider], domain) 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 # Ensure that querying all objects works when only domain_type is provided
if domain is None: if domain is None: