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

hcl2template: remove value validation for locals #12620

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

lbajolet-hashicorp
Copy link
Contributor

Local variables can't have a validation block in their definition, so this step in not useful and should be removed.

Besides, since the validation was done on the local variables before evaluation, it did nothing at all, as the PackerConfig.LocalVariables collection gets populated during evaluation, so this is essentially a no-op, and can be safely removed.

Local variables can't have a validation block in their definition, so
this step in not useful and should be removed.

Besides, since the validation was done on the local variables before
evaluation, it did nothing at all, as the PackerConfig.LocalVariables
collection gets populated during evaluation, so this is essentially a
no-op, and can be safely removed.
@lbajolet-hashicorp lbajolet-hashicorp requested a review from a team as a code owner September 6, 2023 15:12
@lbajolet-hashicorp lbajolet-hashicorp added the backport/1.9.x Backport PR changes to `release/1.9.x` label Sep 6, 2023
Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

Nice catch!

@lbajolet-hashicorp lbajolet-hashicorp merged commit 318529f into main Sep 6, 2023
10 checks passed
@lbajolet-hashicorp lbajolet-hashicorp deleted the rm_local_validation branch September 6, 2023 16:08
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2023
@nywilken nywilken added the tech-debt Issues and pull requests related to addressing technical debt or improving the codebase label Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.9.x Backport PR changes to `release/1.9.x` tech-debt Issues and pull requests related to addressing technical debt or improving the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants