def vt_get_volume_type_by_name(context, name):
 if (name == fake_vt['name']):
  return fake_vt
 raise exception.VolumeTypeNotFoundByName(volume_type_name=name)

def vt_get_volume_type_by_name ( context , name ) : if ( name == fake_vt [ 'name' ] ) : return fake_vt raise exception . VolumeTypeNotFoundByName ( volume_type_name = name )
replacement for cinder .