X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_info.go;h=fd480063629a67e5f1c1c8d103ee1b19107fae88;hp=5ba6ac83c903df14afc3c0a99396ec70dd453bb4;hb=d68ff757d6b816877e8da5e8fc78cd4637725b9a;hpb=da47b542155706887750f8a0338f8cd2ced654a6 diff --git a/cmd/safcm/sync_info.go b/cmd/safcm/sync_info.go index 5ba6ac8..fd48006 100644 --- a/cmd/safcm/sync_info.go +++ b/cmd/safcm/sync_info.go @@ -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 }