def image_show(id=None, name=None, profile=None):
 g_client = _auth(profile)
 ret = {}
 if name:
  for image in g_client.images.list():
   if (image.name == name):
    id = image.id
    continue
 if (not id):
  return {'result': False, 'comment': "Unable to resolve image ID for name '{0}'".format(name)}
 try:
  image = g_client.images.get(id)
 except exc.HTTPNotFound:
  return {'result': False, 'comment': 'No image with ID {0}'.format(id)}
 pformat = pprint.PrettyPrinter(indent=4).pformat
 log.debug('Properties of image {0}:\n{1}'.format(image.name, pformat(image)))
 schema = image_schema(profile=profile)
 if (len(schema.keys()) == 1):
  schema = schema['image']
 for key in schema.keys():
  if (key in image):
   ret[key] = image[key]
 return ret

def image_show ( id = None , name = None , profile = None ) : g_client = _auth ( profile ) ret = { } if name : for image in g_client . images . list ( ) : if ( image . name == name ) : id = image . id continue if ( not id ) : return { 'result' : False , 'comment' : "Unable to resolve image ID for name '{0}'" . format ( name ) } try : image = g_client . images . get ( id ) except exc . HTTPNotFound : return { 'result' : False , 'comment' : 'No image with ID {0}' . format ( id ) } pformat = pprint . PrettyPrinter ( indent = 4 ) . pformat log . debug ( 'Properties of image {0}:\n{1}' . format ( image . name , pformat ( image ) ) ) schema = image_schema ( profile = profile ) if ( len ( schema . keys ( ) ) == 1 ) : schema = schema [ 'image' ] for key in schema . keys ( ) : if ( key in image ) : ret [ key ] = image [ key ] return ret
return details about a specific image cli example: .