This fixes a bug where, in the case that a node_group friendly_name value is set to false, the value evaluates to nil, and the k/v pair is removed. This is undesirable behavior because it means values cannot be set to false, and, worse, Puppet Agent runs will have constant corrective changes trying to set a (now-non-existent) k/v pair to false on each run.
I've added spec tests to handle various possible values. If you add back in the ||nil in https.rb, you'll find that the tests fail, which shows the bug.
This fixes a bug where, in the case that a node_group friendly_name value is set to false, the value evaluates to
nil
, and the k/v pair is removed. This is undesirable behavior because it means values cannot be set tofalse
, and, worse, Puppet Agent runs will have constant corrective changes trying to set a (now-non-existent) k/v pair tofalse
on each run.I've added spec tests to handle various possible values. If you add back in the
||nil
inhttps.rb
, you'll find that the tests fail, which shows the bug.