-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kitchen-ansible with extra_vars fail #18
Comments
Thanks for reporting. I think, escape will be better than the replacement. Because I do not know how to use the kitchen-ansible, could you try this branch? |
It works! Thank you//// :laughing: |
Good job 👍 Thanks 😄 I'll merge the branch and release it soon. |
Done. It is released in v0.12.1 Please check the new version :-) |
Everything goes well. |
I think kitchen-docker_cli itself is NOT responsible for this issue,
but adding a notice for the issue could be helpful.
If
extra_vars
specified, kitchen-ansible generates a JSON string(cf. https://github.com/neillturner/kitchen-ansible/blob/2f7aac93023e4e0602c854146c33ab4441c19408/lib/kitchen/provisioner/ansible_playbook.rb#L477-L478 ).On the other hand, kitchen-docker_cli replaces all
'
in the command string to"
.So the result command looks like:
-e "{"a": "b"}"
It causes an error 😖
I made a workaround ( https://github.com/yewton/kitchen-docker_cli/commit/c028a0a8fd03e8098986228746d7067b3285f1c8 ), but it seems test-kitchen's
wrap_command
should do that 😕I'll more try on it.
Thank you!
The text was updated successfully, but these errors were encountered: