diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-27 21:16:47 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-27 21:16:47 +0000 |
| commit | b2304f19c1128895dbaa2b60f8d5d27f84b2f80c (patch) | |
| tree | 71169ccf8b72726ffa019e130cead3f0bc6eff5e /lib/puppet/parser | |
| parent | c363af0628386b9d67121db7c4f2fa2a5e8b9f65 (diff) | |
| download | puppet-b2304f19c1128895dbaa2b60f8d5d27f84b2f80c.tar.gz puppet-b2304f19c1128895dbaa2b60f8d5d27f84b2f80c.tar.xz puppet-b2304f19c1128895dbaa2b60f8d5d27f84b2f80c.zip | |
Making sure fail function converts everything to strings
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1323 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/functions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb index 569d70c52..31053596f 100644 --- a/lib/puppet/parser/functions.rb +++ b/lib/puppet/parser/functions.rb @@ -117,8 +117,8 @@ module Functions end newfunction(:fail, :statement) do |vals| - vals = vals.join(" ") if vals.is_a? Array - raise Puppet::ParseError, vals + vals = vals.collect { |s| s.to_s }.join(" ") if vals.is_a? Array + raise Puppet::ParseError, vals.to_s end end end |
