Skip to content

Fix validate_domain_name called without parameters #1351

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

Merged
merged 1 commit into from
May 8, 2023

Conversation

smortex
Copy link
Collaborator

@smortex smortex commented May 4, 2023

In #1345, the validate_domain_name() function was rewritten to the
Puppet 4.x syntax, but the behavior was slightly changed since we
previously did not allow passing no parameter at all.

Add code to assert as least one parameter is passed to restore the
previous behavior and raise an error when called without parameter.

In #1345, the validate_domain_name() function was rewritten to the
Puppet 4.x syntax, but the behaviour was slightly changed since we
previously did not allow passing no parameter at all.

Add code to assert as least one paramatter is passed to restore the
previous behavior and raise an error when called without parameter.
@smortex smortex requested review from a team, alexjfisher, b4ldr, bastelfreak and ekohl as code owners May 4, 2023 21:19
@puppet-community-rangefinder
Copy link

validate_domain_name is a function

that may have no external impact to Forge modules.

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

@b4ldr b4ldr merged commit aa12f6e into main May 8, 2023
@b4ldr b4ldr deleted the fix-validate_domain_name-without-params branch May 8, 2023 11:25
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