mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Merge pull request #8570 from hashicorp/fix_ansible_winrm
fix winrmpass sanitization to account for empty string value.
This commit is contained in:
commit
e525d2bd6e
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator, pri
|
|||
flattenedCmd := strings.Join(cmd.Args, " ")
|
||||
sanitized := flattenedCmd
|
||||
winRMPass, ok := p.generatedData["WinRMPassword"]
|
||||
if ok {
|
||||
if ok && winRMPass != "" {
|
||||
sanitized = strings.Replace(sanitized,
|
||||
winRMPass.(string), "*****", -1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue