@require_context
def ec2_snapshot_create(context, snapshot_uuid, id=None):
 ec2_snapshot_ref = models.SnapshotIdMapping()
 ec2_snapshot_ref.update({'uuid': snapshot_uuid})
 if (id is not None):
  ec2_snapshot_ref.update({'id': id})
 ec2_snapshot_ref.save()
 return ec2_snapshot_ref

@ require_context def ec2_snapshot_create ( context , snapshot_uuid , id = None ) : ec2_snapshot_ref = models . SnapshotIdMapping ( ) ec2_snapshot_ref . update ( { 'uuid' : snapshot_uuid } ) if ( id is not None ) : ec2_snapshot_ref . update ( { 'id' : id } ) ec2_snapshot_ref . save ( ) return ec2_snapshot_ref
create ec2 compatible snapshot by provided uuid .