Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence warnings when programs are not installed #62

Merged
merged 2 commits into from
Mar 4, 2014

Conversation

mcallaway
Copy link
Contributor

These changes add begin/rescue/end to the setcode blocks such that facter does not warn:

Could not retrieve pip_version: undefined method `[]' for nil:NilClass
Could not retrieve pip_version: can't convert Symbol into String

Matt Callaway added 2 commits March 4, 2014 15:14
This silences these warnings:

Could not retrieve pip_version: undefined method `[]' for nil:NilClass
Could not retrieve pip_version: can't convert Symbol into String
This silences these warnings:

Could not retrieve pip_version: undefined method `[]' for nil:NilClass
Could not retrieve pip_version: can't convert Symbol into String
stankevich added a commit that referenced this pull request Mar 4, 2014
Silence warnings when programs are not installed
@stankevich stankevich merged commit cb6c591 into voxpupuli:master Mar 4, 2014
stankevich added a commit that referenced this pull request Sep 1, 2015
Silence warnings when programs are not installed
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