mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-13 18:50:11 -04:00
fix bug where build vars couldn't be properly interpolated into this execute command (#9275)
This commit is contained in:
parent
67df9f778a
commit
fecb040bf4
1 changed files with 5 additions and 4 deletions
|
|
@ -371,10 +371,11 @@ func (p *Provisioner) createRemoteCleanUpCommand(remoteFiles []string) (string,
|
|||
return "", fmt.Errorf("clean up script %q failed to upload: %s", remotePath, err)
|
||||
}
|
||||
|
||||
data := map[string]string{
|
||||
"Path": remotePath,
|
||||
"Vars": p.config.RemoteEnvVarPath,
|
||||
}
|
||||
data := p.generatedData
|
||||
data["Path"] = remotePath
|
||||
data["Vars"] = p.config.RemoteEnvVarPath
|
||||
p.config.ctx.Data = data
|
||||
|
||||
p.config.ctx.Data = data
|
||||
return interpolate.Render(p.config.ExecuteCommand, &p.config.ctx)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue