Skip to content

Conversation

@thebinary
Copy link

The issue is due to empty context being set as config.ctx in the builder. So the interpolate function used inside StepTypeBootCommand has no knowledge of the UserVariables.

This commit fixes the issue and so the issue #93

@joncave
Copy link

joncave commented Mar 3, 2018

Just submitted #97 to fix this in a slightly cleaner way by setting the InterpolateContext. This is how the core Hyper-V builder works: https://github.com/hashicorp/packer/blob/master/builder/hyperv/iso/builder.go#L108-L116. The Decode function calls DecodeContext already and will set the context data on the passed InterpolateContext: https://github.com/hashicorp/packer/blob/master/helper/config/decode.go#L45-L48.

@thebinary thebinary closed this Jun 1, 2021
RodyKossen pushed a commit that referenced this pull request Jul 17, 2025
Allow user to have a template or a full VM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants