Skip to content

Commit 72c9c12

Browse files
committed
Fix invalid rego in init policies
We need to use the newer opa v1 syntax. This fixes a failing acceptance test in features/initialize.feature. Side-note: The `ec init policy` command is a bit undercooked, and I don't it's been used much. In this commit I'm just doing the minimum required to make the tests pass, and resisting the urge to also try to improve it. Ref: https://issues.redhat.com/browse/EC-1130
1 parent d788c99 commit 72c9c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/initialize/init_policies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func initPoliciesCmd() *cobra.Command {
6868
# solution: Easy
6969
# collections:
7070
# - A
71-
deny[result] {
71+
deny contains result if {
7272
false
7373
result := "Never denies"
7474
}

0 commit comments

Comments
 (0)