Skip to content

(PA-5820) Correct parameter types #673

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

Conversation

mhashizume
Copy link
Contributor

Previously, 74e022d erroneously typed the $package_version and $install_options parameters as Optional.

This commit updates those parameters to be required, and gives a more specific type to $install_options.

@mhashizume mhashizume added the maintenance Maintenance chores are typically excluded from changelogs label Sep 28, 2023
@mhashizume mhashizume requested review from bastelfreak and a team as code owners September 28, 2023 20:01
@mhashizume mhashizume force-pushed the PA-5820/main/data-type-corrections branch 2 times, most recently from ba0fa4e to a0833de Compare September 29, 2023 00:14
@mhashizume mhashizume force-pushed the PA-5820/main/data-type-corrections branch from a0833de to 7893bb6 Compare September 29, 2023 15:52
Previously, 74e022d erroneously typed the $package_version and
$install_options parameters as Optional.

This commit updates those parameters to be required, and gives a more
specific type to $install_options.
@mhashizume mhashizume force-pushed the PA-5820/main/data-type-corrections branch from 7893bb6 to 1bd111b Compare September 29, 2023 15:59
Copy link
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

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

I verified I could retrieve environment classes and their parameters using:

curl -sf -k --cert cert.pem --key key.pem -X GET -H 'Accept: application/json' 'https://xxx:8140/puppet/v3/environment_classes?environment=production'

and all of the resulting class parameters have a "type"

@joshcooper joshcooper merged commit 9d8fe95 into puppetlabs:main Sep 29, 2023
@mhashizume mhashizume deleted the PA-5820/main/data-type-corrections branch September 29, 2023 18:54
@mhashizume mhashizume added bug Something isn't working and removed maintenance Maintenance chores are typically excluded from changelogs labels Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants