def _image_present(client, image_uuid):
 headers = client.get_image_meta(image_uuid)
 return ('status' in headers)

def _image_present ( client , image_uuid ) : headers = client . get_image_meta ( image_uuid ) return ( 'status' in headers )
check if an image is present in glance .