]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/sync_info.go
safcm: move sync.sendRecv to frontend package
[safcm/safcm.git] / cmd / safcm / sync_info.go
index 5ba6ac83c903df14afc3c0a99396ec70dd453bb4..91878e8ea1e109165e42006f78e18089e60d77fe 100644 (file)
@@ -28,7 +28,7 @@ import (
 )
 
 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,
        })
@@ -60,9 +60,9 @@ func hostInfoRespToGroups(resp safcm.MsgInfoResp) []string {
 }
 
 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
 }