HomePhorge

(#7101) Fix template error messages in Ruby 1.8.5
9d2500e7169bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#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

Details

Provenance
Max Martin <max@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU89e9a212e7c2: add test for ticket 7101
Branches
Unknown
Tags
Unknown

Event Timeline

Max Martin <max@puppetlabs.com> committed rPU9d2500e7169b: (#7101) Fix template error messages in Ruby 1.8.5 (authored by Max Martin <max@puppetlabs.com>).Apr 27 2011, 9:45 PM