-
Notifications
You must be signed in to change notification settings - Fork 24
Avoid exceptions for zone facts on FreeBSD #412
Avoid exceptions for zone facts on FreeBSD #412
Conversation
4fb3469
to
3ba06cc
Compare
Please note that this PR is not enough to run Facter 4 on FreeBSD: I try to isolate each issue and handle them independently. Thanks! |
26798cb
to
c4a8b3a
Compare
@smortex Thank you for the PR. I made an experimental error handling mechanism that would help us in identifying quickly all the errors https://github.com/puppetlabs/facter-ng/tree/experimental_error_handling_for_facts please give it a try. |
@IrimieBogdan nice! When running your branch without my patch, I get:
When I merge my branch, these errors are not reported anymore. Thanks! |
Rubocop does not report any error when running on my system. Is it possible to have the CI report the "2 new offenses" detected to fix them? |
Sure, you can remove the files that you have changed from https://github.com/puppetlabs/facter-ng/blob/master/.rubocop_todo.yml and rubocop will report the errors in those files. |
FreeBSD currently loads all Solaris facts, but FreeBSD does not have "zones", and the zone related facts fail hardly when being processed. Improve error detection when building the zone facts, and do not emit these facts when an error occurred.
c4a8b3a
to
aa60dcc
Compare
@smortex excellent job with this PR! |
FreeBSD currently loads all Solaris facts, but FreeBSD does not have "zones", and the zone related facts fail hardly when being processed.
Improve error detection when building the zone facts, and do not emit these facts when an error occurred.
This fixes the following errors: