Skip to content

Commit

Permalink
Revert "Fix hashicorp#5335"
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampDragons authored Feb 12, 2018
1 parent a4123ea commit 7d9a86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provisioner/ansible-local/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator) err
playbook := filepath.ToSlash(filepath.Join(p.config.StagingDir, filepath.Base(p.config.PlaybookFile)))
inventory := filepath.ToSlash(filepath.Join(p.config.StagingDir, filepath.Base(p.config.InventoryFile)))

extraArgs := fmt.Sprintf(" --extra-vars \\\"packer_build_name=%s packer_builder_type=%s packer_http_addr=%s\\\" ",
extraArgs := fmt.Sprintf(" --extra-vars \"packer_build_name=%s packer_builder_type=%s packer_http_addr=%s\" ",
p.config.PackerBuildName, p.config.PackerBuilderType, common.GetHTTPAddr())
if len(p.config.ExtraArguments) > 0 {
extraArgs = extraArgs + strings.Join(p.config.ExtraArguments, " ")
Expand Down

0 comments on commit 7d9a86b

Please sign in to comment.