voxpupuli / rspec-puppet-facts

Simplify your unit tests by looping on every supported Operating System and populating facts.
Apache License 2.0
61 stars 53 forks source link

handle stringified facterversion properly #191

Closed bastelfreak closed 3 months ago

bastelfreak commented 3 months ago

With symbolized keys we get something like this:

No facts were found in the FacterDB for Facter v4.7.0 on {"os.name"=>"Archlinux", "os.hardware"=>"x86_64"}, using v4.5.2 instead

But if we stringify the factset we get:

No facts were found in the FacterDB for Facter v4.7.0 on {"os.name"=>"Archlinux", "os.hardware"=>"x86_64"}, using v instead

This PR fixes it.