def avail_locations(call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The avail_locations function must be called with -f or --function, or with the --list-locations option')
 ret = {}
 conn = get_conn()
 response = conn.getCreateObjectOptions()
 for datacenter in response['datacenters']:
  ret[datacenter['template']['datacenter']['name']] = {'name': datacenter['template']['datacenter']['name']}
 return ret

def avail_locations ( call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The avail_locations function must be called with -f or --function, or with the --list-locations option' ) ret = { } conn = get_conn ( ) response = conn . getCreateObjectOptions ( ) for datacenter in response [ 'datacenters' ] : ret [ datacenter [ 'template' ] [ 'datacenter' ] [ 'name' ] ] = { 'name' : datacenter [ 'template' ] [ 'datacenter' ] [ 'name' ] } return ret
return available linode datacenter locations .