Red Hat Bugzilla – Bug 725736
[augeas] components should return null from loadConfiguration if augeas is not present instead of throwing an exception
Last modified: 2014-03-26 04:31:01 EDT
Description of problem:
Many of our augeas-based plugins throw an exception from their loadResourceConfiguration() methods when augeas is not available.
We should consider changing this behavior to just returning null (and thus suggesting that configuration is "disabled") for the following reasons:
1) we don't spam the agent log with load config failure messages
2) the configuration is really technically just disabled because of the lack of support of augeas
Note that this is only of any importance on non-RHEL systems for which we don't bundle augeas native libraries.
Steps to Reproduce:
1. install agent on AIX or some other UNIX-like system (that doesn't have augeas installed)
2. inventory it
3. Try going to the Configuration tab of the Sudoers resource
no exception because the configuration is merely disabled.
See also Bug 979658
Also suppress some stacktraces that are just clobbering the logs
Bulk closing now that 4.10 is out.
If you think an issue is not resolved, please open a new BZ and link to the existing one.