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

(BUGFIX) Update to ensure correct facter comparisons #2387

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

david22swan
Copy link
Member

Ensuring that the correct values are compared against facter, there seem to be many cases where lowercase has been used in place of uppercase.

@david22swan david22swan requested a review from a team as a code owner February 9, 2023 16:59
@puppet-community-rangefinder
Copy link

apache::default_confd_files is a class

that may have no external impact to Forge modules.

apache::default_mods is a class

that may have no external impact to Forge modules.

apache is a class

Breaking changes to this file WILL impact these 145 modules (exact match):
Breaking changes to this file MAY impact these 56 modules (near match):

apache::mod is a type

Breaking changes to this file WILL impact these 19 modules (exact match):
Breaking changes to this file MAY impact these 4 modules (near match):

apache::mod::cgid is a class

that may have no external impact to Forge modules.

apache::mod::dav_fs is a class

that may have no external impact to Forge modules.

apache::mod::disk_cache is a class

that may have no external impact to Forge modules.

apache::mod::event is a class

that may have no external impact to Forge modules.

apache::mod::itk is a class

that may have no external impact to Forge modules.

apache::mod::peruser is a class

that may have no external impact to Forge modules.

apache::mod::prefork is a class

Breaking changes to this file WILL impact these 3 modules (exact match):

apache::mod::ssl is a class

Breaking changes to this file WILL impact these 27 modules (exact match):
Breaking changes to this file MAY impact these 2 modules (near match):

apache::mod::worker is a class

that may have no external impact to Forge modules.

apache::mpm is a type

that may have no external impact to Forge modules.

This module is declared in 176 of 580 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@david22swan david22swan force-pushed the bugfix/facter_case_fix branch from 435d4cd to bacd9ee Compare February 9, 2023 17:12
ekohl
ekohl previously approved these changes Feb 9, 2023
Ensuring that the correct values are compared against facter, there seem to be many cases where lowercase has been used in place of uppercase.
@david22swan david22swan force-pushed the bugfix/facter_case_fix branch from 7dfac44 to 290e096 Compare February 9, 2023 17:48
@pmcmaw pmcmaw merged commit f618243 into puppetlabs:main Feb 10, 2023
@ekohl
Copy link
Collaborator

ekohl commented Feb 10, 2023

Out of interest: how did you find this? I'm personally in the camp of "there should be one way and one way only", which implies always using the same casing so big 👍 to this. I just wonder, did you ran into this because of some bug/tooling issue?

@david22swan david22swan deleted the bugfix/facter_case_fix branch February 13, 2023 09:25
@david22swan
Copy link
Member Author

@ekohl Sorry for the late reply, came up in regards to the fix for the templates in my other PR: https://github.com/puppetlabs/puppetlabs-apache/pull/2381/files
Seem's that the checks in .erb files are case sensitive.
After getting that merged in just decided to double check everything else and when I saw the lack of consistency decided to do a quick fix just in case.

@ekohl
Copy link
Collaborator

ekohl commented Feb 23, 2023

Oh yes, ERB is Ruby so case sensitive comparisons. I dislike that Puppet does case insensitive comparisons.

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.

3 participants