Option to disable display of diff in the puppet log#276
Conversation
jhoblitt
left a comment
There was a problem hiding this comment.
This LGTM but I would like a second opinion from a maintainer with more experience with this module.
|
|
|
Here, I’ve successfully merged and successfully make tests pass again. Can we move forward with this please? |
c516311 to
2ae53f0
Compare
2ae53f0 to
48f92fe
Compare
|
Maybe I could add a notice in the README about the risks of using sensitive parameters, as noted on my original issue? What do you think?
|
d345c46 to
174c351
Compare
Pull Request (PR) description
In addition to #275
There is conditions where the sensitive information is displayed in the logs. This add option to completely disable output in the logs.
Tests
I’m not a pro in the tests suite alley, feel free to comment on any other way I could have fixed the tests… It took me way longer to fix the tests than to add the new config.
As the
yum::confignowincludes yumto retreiveyum::show_diff, the tests are done on every supported OS for the variables to be set correctly.I had to modify the versionlock tests to make them pass. The diff is quite hard to read, so here the summary of what I did:
- I moved the contextedit: did not fix this in my new rebase'with a simple, well-formed package name title bash and a version'in the context'with package_provider set to yum'as they were duplicated facts definitionpackage_providerwith the facts provided by every OS