Skip to content

Troubles with search operator in st2 rule definition: "did not find expected key" #5389

Discussion options

You must be logged in to vote

The example in the documents is invalid YAML. I'm still trying to figure how the expected structure. My best guess is that condition and pattern need some left spacing removed so that they are siblings with type.

    criteria:
        trigger.headers['X-Event-Key']:
            type: "equals"
            pattern: "repo:push"
        trigger.body.push.changes:
            type: "search"
            condition: any
            pattern:
                item.new:
                    type: "nexists"
                    pattern: "anyvalue"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stevemuskiewicz
Comment options

@stevemuskiewicz
Comment options

Answer selected by stevemuskiewicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants