Skip to content

Commit

Permalink
Sites change lists to sets
Browse files Browse the repository at this point in the history
  • Loading branch information
adhilto committed Jan 15, 2024
1 parent 356a749 commit 5b33884
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rego/Sites.rego
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ if {
some Event in Item.events
Event.name == "TOGGLE_SERVICE_ENABLED"

"SERVICE_NAME" in [Parameter.name | some Parameter in Event.parameters]
"ORG_UNIT_NAME" in [Parameter.name | some Parameter in Event.parameters]
"NEW_VALUE" in [Parameter.name | some Parameter in Event.parameters]
"SERVICE_NAME" in {Parameter.name | some Parameter in Event.parameters}
"ORG_UNIT_NAME" in {Parameter.name | some Parameter in Event.parameters}
"NEW_VALUE" in {Parameter.name | some Parameter in Event.parameters}

ServiceName := [Parameter.value | some Parameter in Event.parameters; Parameter.name == "SERVICE_NAME"][0]
NewValue := [Parameter.value | some Parameter in Event.parameters; Parameter.name == "NEW_VALUE"][0]
Expand Down

0 comments on commit 5b33884

Please sign in to comment.