Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle stringified facterversion properly #191

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

bastelfreak
Copy link
Member

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.

@bastelfreak bastelfreak self-assigned this Jun 26, 2024
@bastelfreak bastelfreak requested a review from ekohl June 26, 2024 17:26
lib/rspec-puppet-facts.rb Outdated Show resolved Hide resolved
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.
@bastelfreak bastelfreak merged commit e613291 into voxpupuli:master Jun 26, 2024
7 checks passed
@bastelfreak bastelfreak deleted the bug branch June 26, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants