Skip to content
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

Add safe filter for raw args (vagrant) #141

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

apatard
Copy link
Member

@apatard apatard commented Apr 27, 2023

Since molecule ansible/molecule#3887, the jinja is now autoescaping, which leads to things like:

virtualbox.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']

in the Vagrantfile.

Add some "safe" filters to solve this.

…raw args

Since molecule ansible/molecule#3887, the
jinja is now autoescaping, which leads to things like:

virtualbox.customize [&ansible-community#39;modifyvm&ansible-community#39;, :id, &ansible-community#39;--natdnshostresolver1&ansible-community#39;, &ansible-community#39;on&ansible-community#39;]

in the Vagrantfile.

Add some "safe" filters to solve this.

Signed-off-by: Arnaud Patard <[email protected]>
@ssbarnea ssbarnea changed the title src/molecule_plugins/vagrant/modules/vagrant.py: Add safe filter for … Add safe filter for raw args Apr 27, 2023
@ssbarnea ssbarnea added the bug Something isn't working label Apr 27, 2023
@ssbarnea ssbarnea changed the title Add safe filter for raw args Add safe filter for raw args (vagrant) Apr 27, 2023
@ssbarnea ssbarnea merged commit 7eab71d into ansible-community:main Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vagrant
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants