Skip to content

Commit

Permalink
Merge pull request #19 from marcy-terui/kitchen_ansible
Browse files Browse the repository at this point in the history
Fix error on kitchen-ansible with extra_vars
  • Loading branch information
marcy-terui committed Jun 26, 2015
2 parents fa08f7d + d45f895 commit 94b2dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/transport/docker_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def docker_exec_command(container_id, cmd, opt = {})
exec_cmd = "exec"
exec_cmd << " -t" if opt[:tty]
exec_cmd << " -i" if opt[:interactive]
cmd = Util.wrap_command(cmd.gsub('\'', '"')) unless cmd.match(/\Ash\s\-c/)
cmd = Util.wrap_command(cmd.gsub("'", "'\\\\''")) unless cmd.match(/\Ash\s\-c/)
exec_cmd << " #{container_id} #{cmd}"
end

Expand Down

0 comments on commit 94b2dd9

Please sign in to comment.