Injecting environment_vars
does not work when overriding execute_command
#12687
Labels
environment_vars
does not work when overriding execute_command
#12687
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
When executing a shell with admin rights and overwriting the
execute_command
to do so, the definedenvironment_vars
are no longer getting injected into the shell, even though{{ .Vars }}
are passed.Reproduction Steps
Execute
packer build .
in a directory in which a Packer file similar to the simplified one below is present, together with the provided shell script.Packer version
Simplified Packer Template
Operating system and Environment details
OSX Sonoma 14.1
The text was updated successfully, but these errors were encountered: