]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/config/templates.go
config: permit "all" and host group in .InGroup of templates
[safcm/safcm.git] / cmd / safcm / config / templates.go
index b84b4944c017769b10624a675479be4dac6f0f25..0aad2b0b4a55d31705c64a117f90063ccd36fc2f 100644 (file)
@@ -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))
        }