def search_vm_ref_by_identifier(session, identifier):
    vm_ref = (_get_vm_ref_from_vm_uuid(session, identifier) or
              _get_vm_ref_from_extraconfig(session, identifier) or
              _get_vm_ref_from_uuid(session, identifier))
    return vm_ref
Searches VM reference using the identifier.
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/search_vm_ref_by_identifier