Having trouble understanding if there’s a bug in failed_when, or my understanding is incorrect -
a false and a true are OR’ing in a YAML sequence to false:
Fails (failed when evals to true):
`
failed_when:
‘“300 OK” not in command_result.stderr’
`
Passes (failed when evals to false):
`
failed_when:
command_result.rc != 0
`
Both together pass (failed when evals to false):
`
failed_when:
‘“300 OK” not in command_result.stderr’
command_result.rc != 0
`
Spent an hour going back a forth trying to find a syntax error. failed_when passes the task when it evaluates to false, I’ve seen a post from Michael DeHaan saying sequences are treated like ORs.