def get_default_group_type():
 name = CONF.default_group_type
 grp_type = {}
 if (name is not None):
  ctxt = context.get_admin_context()
  try:
   grp_type = get_group_type_by_name(ctxt, name)
  except exception.GroupTypeNotFoundByName:
   LOG.exception(_LE('Default group type is not found. Please check default_group_type config.'))
 return grp_type

def get_default_group_type ( ) : name = CONF . default_group_type grp_type = { } if ( name is not None ) : ctxt = context . get_admin_context ( ) try : grp_type = get_group_type_by_name ( ctxt , name ) except exception . GroupTypeNotFoundByName : LOG . exception ( _LE ( 'Default group type is not found. Please check default_group_type config.' ) ) return grp_type
get the default group type .