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

Rely on modern facts #178

Merged
merged 2 commits into from
Jun 9, 2024
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jun 9, 2024

Previously it read legacy facts, which are deprecated and slowly going away. It drops all the various hacks that were needed for older versions on the assumption they're no longer needed.

Facter 2.4 introduced the structured os fact while Facter 3.0 added the os.hardware fact to it. rspec-puppet-facts relies on those, so Facter versions older than 3.0 are no longer supported.

It also drops workarounds for Facter < 3.4 on Windows.

ekohl added 2 commits June 9, 2024 13:57
Previously it read legacy facts, which are deprecated and slowly going
away. It drops all the various hacks that were needed for older versions
on the assumption they're no longer needed.

Facter 2.4 introduced the structured os fact while Facter 3.0 added the
os.hardware fact to it. rspec-puppet-facts relies on those, so Facter
versions older than 3.0 are no longer supported.
Comment on lines +148 to 151
unless os_fact
RspecPuppetFacts.warning "No os fact was found in FacterDB for: #{facts}"
next
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may never show up, but I felt like it was a decent safeguard

@bastelfreak bastelfreak merged commit beadd79 into voxpupuli:master Jun 9, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants