Created
December 4, 2014 22:28
-
-
Save richm/21474ce1671336eec931 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class fooclass ( | |
$foo = "using default" | |
) { | |
warning("foo = [$foo]") | |
} | |
class { 'fooclass': foo => hiera('does not exist', undef) } | |
# This prints Warning: foo = [] | |
class fooclass ( | |
$foo = "using default" | |
) { | |
warning("foo = [$foo]") | |
} | |
class { 'fooclass': foo => undef } | |
# This prints Warning: foo = [using default] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment