def _get_vm_by_name(name, allDetails=False):
 vms = get_resources_vms(includeConfig=allDetails)
 if (name in vms):
  return vms[name]
 log.info('VM with name "{0}" could not be found.'.format(name))
 return False

def _get_vm_by_name ( name , allDetails = False ) : vms = get_resources_vms ( includeConfig = allDetails ) if ( name in vms ) : return vms [ name ] log . info ( 'VM with name "{0}" could not be found.' . format ( name ) ) return False
since proxmox works based op ids rather than names as identifiers this requires some filtering to retrieve the required information .