-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(bug) - Prevent duplicated fact keys
Previously, when registering a custom fact with rspec-puppet-facts, the fact key would be converted to a string. This lead to duplicate facts being present in the facts hash, as default fact keys are stored as sym. To fix this, we remove a `to_s` conversion on the key in the register_custom_fact method, unless the rspec config stringify keys is true.
- Loading branch information
1 parent
edb6b22
commit 7f83f77
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters