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

(GH-3309) Ensure bundled-ruby defaults are applied at target init #3313

Merged
merged 1 commit into from
May 13, 2024

Conversation

donoghuc
Copy link
Contributor

@donoghuc donoghuc commented May 9, 2024

Previously defaults were not applied until an action was actually requested on a target. This made inventory resolution confusing and non-determanistic behavior with apply_prep. This commit moves application of defaults for a target to the init method for creating a target object.

!bug

  • Apply bundled-ruby defaults at target creation (#3309)

    Ensure defaults associated with bundled-ruby transport config are applied at target initialization.

@donoghuc donoghuc requested a review from a team as a code owner May 9, 2024 23:26
…t init

Previously defaults were not applied until an action was actually requested on a target. This made inventory resolution confusing and non-determanistic behavior with apply_prep. This commit moves application of defaults for a target to the init method for creating a target object.

!bug

* **Apply bundled-ruby defaults at target creation** ([puppetlabs#3309](3309))

  Ensure defaults associated with `bundled-ruby` transport config are
  applied at target initialization.
Copy link
Contributor

@mcdonaldseanp mcdonaldseanp left a comment

Choose a reason for hiding this comment

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

I'm a little surprised we weren't doing this before

@donoghuc
Copy link
Contributor Author

Yeah, i think this is a subtle one that is easy to not be noticed. I think i understand the sentiment around deferring before adding the defaults, bug given it changes the state of the target we need to ensure it happens consistently.

@donoghuc donoghuc merged commit c23ceee into puppetlabs:main May 13, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants