def avail_images(kwargs=None, call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The avail_images function must be called with -f or --function, or with the --list-images option')
 if (not isinstance(kwargs, dict)):
  kwargs = {}
 provider = get_configured_provider()
 location = provider.get('location', DEFAULT_LOCATION)
 if ('location' in kwargs):
  location = kwargs['location']
 params = {'Action': 'DescribeImages', 'RegionId': location}
 items = query(params=params)
 ret = {}
 for image in items['Images']['Image']:
  ret[image['ImageId']] = {}
  for item in image:
   ret[image['ImageId']][item] = str(image[item])
 return ret

def avail_images ( kwargs = None , call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The avail_images function must be called with -f or --function, or with the --list-images option' ) if ( not isinstance ( kwargs , dict ) ) : kwargs = { } provider = get_configured_provider ( ) location = provider . get ( 'location' , DEFAULT_LOCATION ) if ( 'location' in kwargs ) : location = kwargs [ 'location' ] params = { 'Action' : 'DescribeImages' , 'RegionId' : location } items = query ( params = params ) ret = { } for image in items [ 'Images' ] [ 'Image' ] : ret [ image [ 'ImageId' ] ] = { } for item in image : ret [ image [ 'ImageId' ] ] [ item ] = str ( image [ item ] ) return ret
return a list of the images that are on the provider cli example: .