Defined children for get_vm (#15904)

pull/17464/head
Edward Marshall 8 years ago committed by Matt Davis
parent 032bd1dacf
commit 1ec9ac4b70

@ -103,6 +103,7 @@ class VcaAnsibleModule(AnsibleModule):
def get_vm(self, vapp_name, vm_name):
vapp = self.get_vapp(vapp_name)
children = vapp.me.get_Children()
vms = [vm for vm in children.get_Vm() if vm.name == vm_name]
try:
return vms[0]

Loading…
Cancel
Save