Skip to content

Fix/facter 2/env home nil#691

Closed
c10l wants to merge 2 commits intopuppetlabs:facter-2from
c10l:fix/facter-2/env_home_nil
Closed

Fix/facter 2/env home nil#691
c10l wants to merge 2 commits intopuppetlabs:facter-2from
c10l:fix/facter-2/env_home_nil

Conversation

@c10l
Copy link

@c10l c10l commented Jun 12, 2014

This fixes FACT-190.

For more info about this PR, check the conversation with @adrienthebo on the previous PR.

Cassiano Leal added 2 commits June 12, 2014 15:50
Without this patch, when facter is run in an environment where $HOME
is not set, it crashes while trying to expand_path "~". The patch
uses Ruby's ENV['HOME'] instead of "~", which sanitises the
expansion.
@adrienthebo
Copy link

Merged into facter-2 in 1a098cd with a few minor fixups, thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants