Skip to content

Commit

Permalink
builder: fix interpolation for build_steps
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lbajolet-hashicorp committed Dec 9, 2022
1 parent 9adb2b4 commit fff76d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builder/qemu/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
InterpolateFilter: &interpolate.RenderFilter{
Exclude: []string{
"boot_command",
"boot_steps",
"qemuargs",
},
},
Expand Down

0 comments on commit fff76d6

Please # to comment.