)
func (s *Sync) hostInfo(conn *rpc.Conn) ([]string, error) {
- x, err := s.sendRecv(conn, safcm.MsgInfoReq{
+ x, err := s.loop.SendRecv(s, conn, safcm.MsgInfoReq{
LogLevel: s.config.LogLevel,
DetectGroups: s.config.DetectGroups,
})
}
func hostInfoDetectedGroupName(x string) string {
- x = strings.TrimSpace(x)
- x = strings.ToLower(x)
- x = infoGroupDetectedRegexp.ReplaceAllString(x, "_")
+ x = strings.TrimSpace(x)
+ x = strings.ToLower(x)
+ x = infoGroupDetectedRegexp.ReplaceAllString(x, "_")
x = config.GroupDetectedPrefix + "_" + x
return x
}