mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 15:01:40 -04:00
Merge pull request #2505 from pecigonzalo/b-windows-variables_errors
Fix powershell elevated not setting variables properly.
This commit is contained in:
@@ -399,7 +399,7 @@ func (p *Provisioner) createCommandText() (command string, err error) {
|
||||
Vars: flattenedEnvVars,
|
||||
Path: p.config.RemotePath,
|
||||
}
|
||||
command, err = interpolate.Render(p.config.ExecuteCommand, &p.config.ctx)
|
||||
command, err = interpolate.Render(p.config.ElevatedExecuteCommand, &p.config.ctx)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Error processing command: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user