Get a VirtualMachine object

def get_vm(self, name, path=""):
        """Get a VirtualMachine object"""
        if path:
            return self.get_obj([vim.VirtualMachine], name, path=path)
        else:
            return self.get_obj([vim.VirtualMachine], name)