HomePhorge

(#12336) Util::'which' may fail if user's path contains a tilde
1c0360e7cf95Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(#12336) Util::'which' may fail if user's path contains a tilde

In certain circumstances (user's HOME environment variable is not set, or has
been unset during ruby execution, plus PATH contains a literal ~ character), Util::w
hich would raise an ArgumentError. Handle this error by logging a warning (one time only) and ignoring this element of the PATH.

Details

Provenance
cprice <chris@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU83f61eb7652c: Merge pull request #465 from cprice-puppet/bug/master/12454-device_spec…
Branches
Unknown
Tags
Unknown

Event Timeline

cprice <chris@puppetlabs.com> committed rPU1c0360e7cf95: (#12336) Util::'which' may fail if user's path contains a tilde (authored by cprice <chris@puppetlabs.com>).Feb 8 2012, 3:43 AM