Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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