summaryrefslogtreecommitdiffstats
path: root/examples/code/execs
diff options
context:
space:
mode:
authorMax Martin <max@puppetlabs.com>2011-04-26 11:44:16 -0700
committerMax Martin <max@puppetlabs.com>2011-04-26 11:44:16 -0700
commit6064e8e37b0d6f9996921bfa598d5401a1f98537 (patch)
tree0db9dc7cea499ba76d609be93e90219924961157 /examples/code/execs
parent67a86554fff18cd75744ea987ea2361f495efc4c (diff)
downloadpuppet-6064e8e37b0d6f9996921bfa598d5401a1f98537.tar.gz
puppet-6064e8e37b0d6f9996921bfa598d5401a1f98537.tar.xz
puppet-6064e8e37b0d6f9996921bfa598d5401a1f98537.zip
(#7101) Fix template error messages in Ruby 1.8.5
lib/puppet/parser/templatewrapper.rb#script_line was calling .first on a String object, which in Ruby > 1.8.5 will return the entire string, but in 1.8.5 will cause an exception. This change (proposed by Markus Roberts) removes the call to .first and adds a condition for when the template error involves the file not being found. Reviewed-by: Jesse Wolfe
Diffstat (limited to 'examples/code/execs')
0 files changed, 0 insertions, 0 deletions