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))
}