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

[MODULES-10729] defined_with_params - unnamed type #1115

Conversation

trevor-vaughan
Copy link
Contributor

This fixes an issue where trying to match against any declared defined
type with a specific parameter would never return that there was a match
in the catalog.

This is relevant when trying to ensure that you don't have port
conflicts in services that can declare multiple instances of a service
through a given defined type, such as Apache.

This, previously valid call to the function now works as expected:

defined_with_params(My::DefinedType, { 'port' => 1337 })

MODULES-10729 #close

This fixes an issue where trying to match against any declared defined
type with a specific parameter would never return that there was a match
in the catalog.

This is relevant when trying to ensure that you don't have port
conflicts in services that can declare multiple instances of a service
through a given defined type, such as Apache.

This, previously valid call to the function now works as expected:

``defined_with_params(My::DefinedType, { 'port' => 1337 })``

MODULES-10729 #close
@trevor-vaughan trevor-vaughan requested a review from a team as a code owner July 8, 2020 18:29
@puppet-community-rangefinder
Copy link

defined_with_params is a function

Breaking changes to this file MAY impact these 7 modules (near match):

This module is declared in 318 of 575 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.

Copy link
Contributor

@sanfrancrisko sanfrancrisko left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @trevor-vaughan

@sanfrancrisko sanfrancrisko merged commit 33ff524 into puppetlabs:master Aug 10, 2020
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.

2 participants