Last active
June 15, 2016 19:07
-
-
Save acidprime/79826edf003db9552b6a to your computer and use it in GitHub Desktop.
Empty string change in future parser
This file contains hidden or 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
cat /tmp/foo.pp | |
$empty = '' | |
if $empty { | |
notify { 'condition is true': } | |
} else { | |
notify { 'condition is false': } | |
} | |
vagrant:~ zack$ /opt/puppet/bin/puppet apply /tmp/foo.pp | |
Notice: Compiled catalog for swiftstore2.corp.puppetlabs.net in environment production in 0.02 seconds | |
Notice: condition is false | |
Notice: /Stage[main]/Main/Notify[condition is false]/message: defined 'message' as 'condition is false' | |
Notice: Finished catalog run in 0.09 seconds | |
vagrant:~ zack$ /opt/puppet/bin/puppet apply /tmp/foo.pp --parser future | |
Notice: Compiled catalog for swiftstore2.corp.puppetlabs.net in environment production in 0.56 seconds | |
Notice: condition is true | |
Notice: /Stage[main]/Main/Notify[condition is true]/message: defined 'message' as 'condition is true' | |
Notice: Finished catalog run in 0.09 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment