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

fix: remove apt:: prefix from fact variables #1081

Conversation

johanfleury
Copy link

Fact variables are top-scopped and should not be prefixed by module name.

This bug was introduced by cb6e58c.

Fact variables are top-scopped and should not be prefixed by module name.

This bug was introduced by cb6e58c.
@johanfleury johanfleury requested a review from a team as a code owner January 2, 2023 14:18
@puppet-community-rangefinder
Copy link

apt::update is a class

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

This module is declared in 235 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.

@johanfleury
Copy link
Author

@pmcmaw I’m pinging you as you’re the one who published the previous release: once this PR is merged, could you please make a new release as soon as possible?

Release v9.0.1 is broken with: Server Error: Evaluation Error: Unknown variable: 'apt::apt_update_last_success'. (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/update.pp, line: 21, column: 10).

manifests/update.pp Outdated Show resolved Hide resolved
manifests/update.pp Outdated Show resolved Hide resolved
@johanfleury johanfleury force-pushed the fix/remove-apt-prefix-from-facts-variables branch 2 times, most recently from c0bbfbd to 6230968 Compare January 6, 2023 16:40
@johanfleury johanfleury requested a review from kenyon January 6, 2023 16:41
@johanfleury johanfleury force-pushed the fix/remove-apt-prefix-from-facts-variables branch from 6230968 to bacf745 Compare January 6, 2023 16:41
@johanfleury
Copy link
Author

@kenyon thanks for the review, your suggestions make sense. Let me know if there’s anything else I should change.

Copy link
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants