Skip to content

Commit

Permalink
fix(util.ValidateRulebase): Allow pre/post rulebase and shared
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmog committed Jan 7, 2022
1 parent 50fc449 commit 88f12b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ func ValidateRulebase(dg, base string) error {
return fmt.Errorf("rulebase %q requires \"shared\" device group", base)
}
case PreRulebase, PostRulebase:
if dg == "shared" {
return fmt.Errorf("rulebase %q requires a specific device group, not \"shared\"", base)
}
default:
return fmt.Errorf("unknown rulebase %q", base)
}
Expand Down

0 comments on commit 88f12b8

Please sign in to comment.