-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
autofs_version fact throws exception on mac OS X #68
Comments
It looks like the right thing to do is to "confine" this to Linux (since the regex is linux specific): https://docs.puppet.com/facter/3.6/custom_facts.html#confining-facts If ever want to support mac's automount, then it looks like can add a fact confined to Darwin kernel next to this one. I've not tested this:
|
Closing the above PR since still get an error:
I can look at this some more next week. |
Reopened PR #69 - the changes do work. |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Run puppet apply with any puppet manifests. Don't need to be using autofs resources, just need to have puppet/autofs in your Puppetfile (and have done a pluginsync).
What are you seeing
What behaviour did you expect instead
No crash, and autofs_version fact returning something like nil or empty string.
Output log
Any additional information you'd like to impart
This new autofs_version fact was added in this PR:
#33
The text was updated successfully, but these errors were encountered: