Closed jordanbreen28 closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
ec05ede
) 95.23% compared to head (d0c9451
) 95.34%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@ekohl @bastelfreak 👋 sorry for the ping.. Does this need anything/any comments? Thanks
This PR implements a new merge_facts option, which can be used with the add_custom_fact method in your configurations. It allows users to determine whether they want to completely overwrite a fact already present in the facts hash, or simply merge values into the existing fact to expand/overwrite certain values whilst the entirety of the fact.
sample usage: add_custom_fact :identity, { 'user' => "test_user" }, merge_facts: true will update the value of user in the identity fact to "test_user", whilst keeping the rest of the identity fact values the same.
Failing tests rely on the merge of https://github.com/voxpupuli/rspec-puppet-facts/pull/157