def _groupname():
 if grp:
  groupname = grp.getgrgid(os.getgid()).gr_name
 else:
  groupname = ''
 return groupname

def _groupname ( ) : if grp : groupname = grp . getgrgid ( os . getgid ( ) ) . gr_name else : groupname = '' return groupname
grain for the minion groupname .