Details
Description
The documentation for collector search expressions states that, for the equality search ==, undef is a valid right operand.
However, when I try to use it, I get an Error: Evaluation Error: Error while evaluating a Virtual Query, Cannot transform object of class Puppet::Pops::Model::LiteralUndef error.
Sample code:
define foo ( |
$x = undef , |
$y = undef , |
) {
|
notify { "foo::${x}::${y}": } |
}
|
|
foo { 'bar': y => 'quux' } |
Foo <| x == undef |> { x => 'baz' } |
This is the result:
$ puppet apply -t test.pp
|
Info: Loading facts
|
Info: Loading facts
|
Error: Evaluation Error: Error while evaluating a Virtual Query, Cannot transform object of class Puppet::Pops::Model::LiteralUndef at …/test.pp:9:1 on node …
|