def api_manage(*args, **kwargs):
 ctx = context.RequestContext(fake.USER_ID, fake.PROJECT_ID, True)
 vol = {'status': 'creating', 'display_name': 'fake_name', 'availability_zone': 'nova', 'tenant_id': fake.PROJECT_ID, 'id': fake.VOLUME_ID, 'volume_type': None, 'snapshot_id': None, 'user_id': fake.USER_ID, 'size': 0, 'attach_status': fields.VolumeAttachStatus.DETACHED, 'volume_type_id': None}
 return fake_volume.fake_volume_obj(ctx, **vol)

def api_manage ( * args , ** kwargs ) : ctx = context . RequestContext ( fake . USER_ID , fake . PROJECT_ID , True ) vol = { 'status' : 'creating' , 'display_name' : 'fake_name' , 'availability_zone' : 'nova' , 'tenant_id' : fake . PROJECT_ID , 'id' : fake . VOLUME_ID , 'volume_type' : None , 'snapshot_id' : None , 'user_id' : fake . USER_ID , 'size' : 0 , 'attach_status' : fields . VolumeAttachStatus . DETACHED , 'volume_type_id' : None } return fake_volume . fake_volume_obj ( ctx , ** vol )
replacement for cinder .