HomePhorge

(#7101) Fix template error messages in Ruby 1.8.5
6064e8e37b0dUnpublished

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
rPU67a86554fff1: Merge branch 'ticket/2.7.x/7137-spurious-warnings' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Max Martin <max@puppetlabs.com> committed rPU6064e8e37b0d: (#7101) Fix template error messages in Ruby 1.8.5 (authored by Max Martin <max@puppetlabs.com>).Apr 26 2011, 8:44 PM