def api_snapshot_get(self, context, snp_id):
 snapshot = {'id': fake.SNAPSHOT_ID, 'progress': '100%', 'volume_id': fake.VOLUME_ID, 'project_id': fake.PROJECT_ID, 'status': fields.SnapshotStatus.AVAILABLE}
 if (snp_id == snapshot_id):
  snapshot_objct = fake_snapshot.fake_snapshot_obj(context, **snapshot)
  return snapshot_objct
 else:
  raise exception.SnapshotNotFound(snapshot_id=snp_id)

def api_snapshot_get ( self , context , snp_id ) : snapshot = { 'id' : fake . SNAPSHOT_ID , 'progress' : '100%' , 'volume_id' : fake . VOLUME_ID , 'project_id' : fake . PROJECT_ID , 'status' : fields . SnapshotStatus . AVAILABLE } if ( snp_id == snapshot_id ) : snapshot_objct = fake_snapshot . fake_snapshot_obj ( context , ** snapshot ) return snapshot_objct else : raise exception . SnapshotNotFound ( snapshot_id = snp_id )
replacement for cinder .