Fix wrong command type being used when running elevated provisioner.

This commit is contained in:
Gonzalo Peci 2015-07-27 12:43:05 +12:00
parent c73314cd38
commit 21107b0027
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}