Troubles with search
operator in st2 rule definition: "did not find expected key"
#5389
-
(I asked this on Slack awhile back, but guessing it got lost in the noise) I'm trying to use the I'm trying to apply the rule when any of the items of the Here's the snippet of my rule criteria:
and here's the exception I get from st2 when I try to load the pack:
(line 23 coincides with the I'm not sure what the "expected key" is that st2 was looking for here. Originally I started with no I've reviewed the docs several times and it thought I had all the right keys but maybe I'm missing something obvious? TIA! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The example in the documents is invalid YAML. I'm still trying to figure how the expected structure. My best guess is that
|
Beta Was this translation helpful? Give feedback.
The example in the documents is invalid YAML. I'm still trying to figure how the expected structure. My best guess is that
condition
andpattern
need some left spacing removed so that they are siblings with type.