@utils.arg('--limit', dest='limit', metavar='<limit>', help=_('Number of images to return per request.'))
@deprecated_image
def do_image_list(cs, _args):
 limit = _args.limit
 image_list = cs.images.list(limit=limit)
 def parse_server_name(image):
  try:
   return image.server['id']
  except (AttributeError, KeyError):
   return ''
 fmts = {'Server': parse_server_name}
 utils.print_list(image_list, ['ID', 'Name', 'Status', 'Server'], fmts, sortby_index=1)

@ utils . arg ( '--limit' , dest = 'limit' , metavar = '<limit>' , help = _ ( 'Number of images to return per request.' ) ) @ deprecated_image def do_image_list ( cs , _args ) : limit = _args . limit image_list = cs . images . list ( limit = limit ) def parse_server_name ( image ) : try : return image . server [ 'id' ] except ( AttributeError , KeyError ) : return '' fmts = { 'Server' : parse_server_name } utils . print_list ( image_list , [ 'ID' , 'Name' , 'Status' , 'Server' ] , fmts , sortby_index = 1 )
print a list of available images to boot from .