Example #1
0
def id_to_glance_id(context, image_id):
    """Convert an internal (db) id to a glance id."""
    return db.s3_image_get(context, image_id)['uuid']
Example #2
0
def id_to_glance_id(context, image_id):
    """Convert an internal (db) id to a glance id."""
    return db.s3_image_get(context, image_id)['uuid']
Example #3
0
 def get_by_id(cls, context, s3_id):
     db_s3imap = db.s3_image_get(context, s3_id)
     if db_s3imap:
         return cls._from_db_object(context, cls(context), db_s3imap)