-
Notifications
You must be signed in to change notification settings - Fork 76
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
Vagrant template generating incorrect Vagrantfile due to autoescape #158
Comments
Guess i run into the same issue with box_url and box_version having encoded characters which make the Vagrantfile invalid |
I've just merge PR #153. Should we close this bug ? |
Sure. In hindsight, When will a new molecule-plugin version be cut? Thank again. |
I guess that anyway I'll sooner or later make a PR to update test boxes to newer ones like bullseye or even bookworn. Same for alpine ones. That's why I didn't annoy you with that.
I don't know. I hope soon but it would be nice to get some more PR merged before releasing. |
"Release early, release often" 😄 A new ansible creator-ee was just released. As more people pick up 5.0.1, more will encounter this bug. |
This has been ongoing for a while now. Any reason as to not ship the fix on a new version? |
Just encountered this as well. |
Please release this! |
This can be closed as it was fixed in #153 and released is 23.5.0. |
The Vagrantfile template isn't using the
safe
filter in all the locations needed.This results in a invalid Vagrantfile being generated.
This bug was introduced in molecule v5.0.1 due to the use of
autoescape
when calling Jinja2.Details of this problem can be found here:
ansible/molecule#3912
The request in that issue was to create a bug report in molecule-plugins with a test.
So, the PR here has both a fix and a test included.
#153
Unfortunately I couldn't get the Vagrant tests to work, and looking through the issues log, this appears to be a known issue.
But the tests, when run manually, work ok.
The only other change in that PR was to change the Vagrantbox from
jessie64
tostretch64
.This is due to jessie being archived.
The repo.conf could be updated, or jessie box rebuilt, etc. but I went the easy route.
Here's the jessie64 errors for posterity.
The text was updated successfully, but these errors were encountered: