Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

builder: fix interpolation for build_steps #112

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

lbajolet-hashicorp
Copy link
Contributor

@lbajolet-hashicorp lbajolet-hashicorp commented Dec 9, 2022

When the build_steps alternative for inputting boot commands was merged, we did not add an exception for interpolating its contents prior to the type_boot_command step.

This caused all its contents to be pre-interpolated, but since it relies on data that was not populated at interpolation-time, we ended-up with the templated content replaced by <no value>.

Adding the boot_steps to the exceptions fixes this problem.

Closes #109

When the build_steps alternative for inputting boot commands was merged,
we did not add an exception for interpolating its contents prior to the
type_boot_command step.

This caused all its contents to be pre-interpolated, but since it relies
on data that was not populated at interpolation-time, we ended-up with
the templated content replaced by <no value>.

Adding the boot_steps to the exceptions fixes this problem.
@lbajolet-hashicorp lbajolet-hashicorp requested a review from a team as a code owner December 9, 2022 21:03
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 fff76d6 into main Dec 9, 2022
@lbajolet-hashicorp lbajolet-hashicorp deleted the fix_boot_steps_interpolation branch December 9, 2022 21:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boot_steps fail to expand {{ .HTTPIP }} and {{ .HTTPPort }}
2 participants