def _get_vm_ref_from_the_name(self, vm_name):
        vms = self._session._call_method(vim_util, "get_objects",
                    "VirtualMachine", ["name"])
        for vm in vms:
            if vm.propSet[0].val == vm_name:
                return vm.obj
        return None
Get reference to the VM with the name specified.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/virt/vmwareapi/vmops.py/VMWareVMOps._get_vm_ref_from_the_name