X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync.go;h=6358f0cb60feb4570cc5dae1a9e0e24bce6a69ed;hp=77e83c4187592ca1bd5cc31e44da3f4acfb4830d;hb=77f373a4aa590711155e3af0b768997781f81559;hpb=f4bae10a4029edfb5db6cb9d305b5d67135409f0 diff --git a/cmd/safcm/sync.go b/cmd/safcm/sync.go index 77e83c4..6358f0c 100644 --- a/cmd/safcm/sync.go +++ b/cmd/safcm/sync.go @@ -226,10 +226,7 @@ func MainSync(args []string) error { func hostsToSync(names []string, allHosts *config.Hosts, allGroups map[string][]string) ([]*config.Host, error) { - detectedMap := make(map[string]bool) - for _, x := range config.TransitivelyDetectedGroups(allGroups) { - detectedMap[x] = true - } + detectedMap := config.TransitivelyDetectedGroups(allGroups) const detectedErr = `