X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fconfig%2Ftemplates.go;h=0aad2b0b4a55d31705c64a117f90063ccd36fc2f;hb=4473e968425319e6beae558643bb047a6b01c17a;hp=b84b4944c017769b10624a675479be4dac6f0f25;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/config/templates.go b/cmd/safcm/config/templates.go index b84b494..0aad2b0 100644 --- a/cmd/safcm/config/templates.go +++ b/cmd/safcm/config/templates.go @@ -116,7 +116,9 @@ func (t *templateArgs) IsHost(host string) bool { func (t *templateArgs) InGroup(group string) bool { // Don't permit invalid groups to detect typos; detected groups cannot // be checked - if !t.allGroups[group] && + if group != GroupAll && + !t.allGroups[group] && + !t.allHosts[group] && !strings.HasPrefix(group, GroupDetectedPrefix) { panic(fmt.Sprintf("group %q does not exist", group)) }