HomePhorge

(PUP-2683) Fix fact terminus to load facts without '.' on the load path.
c32b757acaf9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-2683) Fix fact terminus to load facts without '.' on the load path.

The fix to PUP-2478 removed '.' from the load path, which only affected
Ruby 1.8.7. However, the fact terminus does "load <filename>" to load
module facts. In Ruby 1.8.7, this will fail to load because '.' is no
longer on the load path. In Ruby 1.9.3+, loading with just a filename
assumes the current directory even without '.' on the load path.

This commit fixes the issue by joining '.' with the filename which
works in all currently supported Ruby versions.

Details

Provenance
Peter Huene <peter.huene@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU126f0a11941c: (packaging) Update PUPPETVERSION to 3.6.2
Branches
Unknown
Tags
Unknown

Event Timeline

Peter Huene <peter.huene@puppetlabs.com> committed rPUc32b757acaf9: (PUP-2683) Fix fact terminus to load facts without '.' on the load path. (authored by Peter Huene <peter.huene@puppetlabs.com>).May 28 2014, 4:52 AM