From b2304f19c1128895dbaa2b60f8d5d27f84b2f80c Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 27 Jun 2006 21:16:47 +0000 Subject: Making sure fail function converts everything to strings git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1323 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/functions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet') 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 -- cgit