def __get_location(vm_):
 locations = avail_locations()
 vm_location = str(config.get_cloud_config_value('location', vm_, __opts__, search_global=False))
 if (not vm_location):
  raise SaltCloudNotFound('No location specified for this VM.')
 if (vm_location and (str(vm_location) in locations)):
  return locations[vm_location]['RegionId']
 raise SaltCloudNotFound("The specified location, '{0}', could not be found.".format(vm_location))

def __get_location ( vm_ ) : locations = avail_locations ( ) vm_location = str ( config . get_cloud_config_value ( 'location' , vm_ , __opts__ , search_global = False ) ) if ( not vm_location ) : raise SaltCloudNotFound ( 'No location specified for this VM.' ) if ( vm_location and ( str ( vm_location ) in locations ) ) : return locations [ vm_location ] [ 'RegionId' ] raise SaltCloudNotFound ( "The specified location, '{0}', could not be found." . format ( vm_location ) )
return the vms location .