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

puppet_agent::run: properly validate environment parameter #714

Merged
merged 1 commit into from
May 8, 2024

Conversation

bastelfreak
Copy link
Collaborator

previously we assumed that an environment exists in the params hash. And we didn't allow environment names with a single character. This PR fixes both.

@bastelfreak bastelfreak added the bug Something isn't working label Apr 29, 2024
@bastelfreak bastelfreak self-assigned this Apr 29, 2024
@bastelfreak bastelfreak requested a review from a team as a code owner April 29, 2024 13:50
previously we assumed that an environment exists in the params hash. And
we didn't allow environment names with a single character. This PR fixes
both.
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.

Ideally would be great to have test coverage for the case where environment is absent versus a single character, but the task specs are lacking in general, so I'm ok merging.

@joshcooper joshcooper merged commit 8207d16 into puppetlabs:main May 8, 2024
17 checks passed
@bastelfreak bastelfreak deleted the sanity branch May 11, 2024 20:42
@bastelfreak bastelfreak mentioned this pull request May 24, 2024
3 tasks
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.

None yet

3 participants