def get_default_volume_type():
 name = CONF.default_volume_type
 vol_type = {}
 if (name is not None):
  ctxt = context.get_admin_context()
  try:
   vol_type = get_volume_type_by_name(ctxt, name)
  except exception.VolumeTypeNotFoundByName:
   LOG.exception(_LE('Default volume type is not found. Please check default_volume_type config:'))
 return vol_type

def get_default_volume_type ( ) : name = CONF . default_volume_type vol_type = { } if ( name is not None ) : ctxt = context . get_admin_context ( ) try : vol_type = get_volume_type_by_name ( ctxt , name ) except exception . VolumeTypeNotFoundByName : LOG . exception ( _LE ( 'Default volume type is not found. Please check default_volume_type config:' ) ) return vol_type
get the default volume type .