code: def get_location(vm_):
      '''
      Return the VM's location
      '''
      locations = avail_locations()
      vm_location = six.text_type(config.get_cloud_config_value(
          'location', vm_, __opts__, search_global=False
      ))
  
      for location in locations:
          if vm_location in (locations[location]['name'],
                             locations[location]['slug']):
              return locations[location]['slug']
      raise SaltCloudNotFound(
          'The specified location, \'{0}\', could not be found.'.format(
              vm_location
          )
      f get_location(vm_):
      '''
      Return the VM's location
      '''
      locations = avail_locations()
      vm_location = six.text_type(config.get_cloud_config_value(
          'location', vm_, __opts__, search_global=False
      ))
  
      for location in locations:
          if vm_location in (locations[location]['name'],
                             locations[location]['slug']):
              return locations[location]['slug']
      raise SaltCloudNotFound(
          'The specified location, \'{0}\', could not be found.'.format(
              vm_location
          )
      )
docs: Return the VM's location