def get_default_cgsnapshot_type():
 grp_type = {}
 ctxt = context.get_admin_context()
 try:
  grp_type = get_group_type_by_name(ctxt, DEFAULT_CGSNAPSHOT_TYPE)
 except exception.GroupTypeNotFoundByName:
  LOG.exception((_LE('Default cgsnapshot type %s is not found.') % DEFAULT_CGSNAPSHOT_TYPE))
 return grp_type

def get_default_cgsnapshot_type ( ) : grp_type = { } ctxt = context . get_admin_context ( ) try : grp_type = get_group_type_by_name ( ctxt , DEFAULT_CGSNAPSHOT_TYPE ) except exception . GroupTypeNotFoundByName : LOG . exception ( ( _LE ( 'Default cgsnapshot type %s is not found.' ) % DEFAULT_CGSNAPSHOT_TYPE ) ) return grp_type
get the default group type for migrating cgsnapshots .