diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2010-07-19 12:32:46 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-19 19:56:09 -0700 |
| commit | 06fc40c5d755a41c8ece84a3d437572a64b4c899 (patch) | |
| tree | 25bd26521604d2881fbb5c6429310031fb86ea56 /lib/puppet | |
| parent | 1288f8c4051105d6cfbf4f532d5e5e926613e9df (diff) | |
| download | puppet-06fc40c5d755a41c8ece84a3d437572a64b4c899.tar.gz puppet-06fc40c5d755a41c8ece84a3d437572a64b4c899.tar.xz puppet-06fc40c5d755a41c8ece84a3d437572a64b4c899.zip | |
[#4269] Undef variables interpolate to empty string
This fixes double-quoted strings to interpolate undef variables
as an empty string. This is the behavior present in 0.25.x.
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/parser/ast/leaf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast/leaf.rb b/lib/puppet/parser/ast/leaf.rb index db9788f50..49cde63ca 100644 --- a/lib/puppet/parser/ast/leaf.rb +++ b/lib/puppet/parser/ast/leaf.rb @@ -63,7 +63,7 @@ class Puppet::Parser::AST class Concat < AST::Leaf def evaluate(scope) - @value.collect { |x| x.evaluate(scope) }.join + @value.collect { |x| x.evaluate(scope) }.collect{ |x| x == :undef ? '' : x }.join end def to_s |
