class

Krikri::ConditionalEvaluator::ConditionalBooleanError

Inherits Exception < Reference < Object

Evaluate a when: condition against a variable context Returns true if condition passes, false otherwise Raised only from the strict: path (changed_when:/failed_when:) when the condition's own value - not one produced by a real boolean operator (==, in, is defined, and/or/not, ...) - resolves to a genuine None/null (e.g. a filter like regex_search() finding no match). Real Ansible's changed_when/failed_when (unlike when:, which freely truthy-converts) requires the templated result to already be a literal boolean; a None specifically raises "Conditional result (...) was derived from value of type 'NoneType'. Conditionals must have a boolean result." rather than being silently treated as false.