summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-06-25 11:18:13 -0700
committerJesse Wolfe <jes5199@gmail.com>2010-06-25 18:14:58 -0700
commitedfcbf94cf44170f9aa8bcc8a330d323f0701abb (patch)
treec60e1058d652c8b159c3b999e52e00c57fb89be6
parent61e978b5e066086c4a8754afcf5282b643e1e76d (diff)
downloadpuppet-edfcbf94cf44170f9aa8bcc8a330d323f0701abb.tar.gz
puppet-edfcbf94cf44170f9aa8bcc8a330d323f0701abb.tar.xz
puppet-edfcbf94cf44170f9aa8bcc8a330d323f0701abb.zip
[#3139] Fixed a problem with the value method for parameters
The value method was failing to return any value in the case where the value was false.
-rw-r--r--lib/puppet/parameter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb
index abcd67dbc..3c208527f 100644
--- a/lib/puppet/parameter.rb
+++ b/lib/puppet/parameter.rb
@@ -283,7 +283,7 @@ class Puppet::Parameter
end
def value
- unmunge(@value) if @value
+ unmunge(@value) unless @value.nil?
end
# Store the value provided. All of the checking should possibly be