X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync.go;h=77e83c4187592ca1bd5cc31e44da3f4acfb4830d;hp=98b118ed821d2224bf4f7e77e0ed002b368d9df3;hb=5d6cc7f14a4bacc36bf3a23cd735a75ad4a90f1d;hpb=d56dba0752e6b7d2dcac2c0d0e2e3ccddf80cd2a diff --git a/cmd/safcm/sync.go b/cmd/safcm/sync.go index 98b118e..77e83c4 100644 --- a/cmd/safcm/sync.go +++ b/cmd/safcm/sync.go @@ -247,8 +247,8 @@ are only available after the hosts were contacted. nameMap[x] = true } nameMatched := make(map[string]bool) - // To detect typos we must check all given names but only want to add - // each match once + // To detect typos we must check all given names but one host can be + // matched by multiple names (e.g. two groups with overlapping hosts) hostMatched := make(map[string]bool) var res []*config.Host