HomePhorge

(PUP-3863) Ensure correct handling when undef is hiera default value
114b7da9cbbfUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3863) Ensure correct handling when undef is hiera default value

The Puppet function hiera() was not able to diffrentiate between the
lack of a default argument and a default argument passed as undef.
Instead, it would always treat undef as "no default" and consequently
raise an error when no value was found for a given key.

This commit changes this so that the hieara function (and it's
specializations) have different dispatchers for the cases when a
default parameter is provided or not. For the case when the default
is provied it will pass a special default value down to Hiera in its
place. On return of this special default means that the original
default should be used.

Details

Provenance
Thomas Hallgren <thomas@tada.se>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe5ce4c9eac38: Merge pull request #3762 from hlindberg/PUP-4277_for-3.x-deep-match
Branches
Unknown
Tags
Unknown

Event Timeline

Thomas Hallgren <thomas@tada.se> committed rPU114b7da9cbbf: (PUP-3863) Ensure correct handling when undef is hiera default value (authored by Thomas Hallgren <thomas@tada.se>).Mar 31 2015, 3:57 PM