Skip to content

Instantly share code, notes, and snippets.

@acidprime
Last active June 15, 2016 19:07
Show Gist options
  • Save acidprime/79826edf003db9552b6a to your computer and use it in GitHub Desktop.
Save acidprime/79826edf003db9552b6a to your computer and use it in GitHub Desktop.
Empty string change in future parser
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