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
Issue willthames/ansible-lint#263 #269
Conversation
Ansible 2.3+ allows variables to be encrypted *within* YAML files. Pass vault_password (even if it's wrong) to the functions that parse YAML.
This is failing tests. It should also come with its own tests, to prove that ansible-lint still works with older versions of ansible after this change. ansible-lint still works with 1.9, but if you break 1.9 support now, that's fine, but I'd like to support 2.1 onwards at the very least. |
So I checked out my branch, and ran Every time I run |
That is weird. Closing and reopening in the hope of triggering a better travis build |
Again, it's done a (different) wrong commit |
I can run it independently too, it sounds like it's good to merge, will get this sorted soon |
I haven't got time to do the code change quickly, but my earlier comment still stands. Since ansible-lint isn't concerned with the decrypted contents, it's probably unnecessary to have the --ask-vault-pass option at the script level and hand the password all the way through the function calls. It's probably sufficient just to supply a password of 'x' whenever ansible will accept one (2.3+). |
OK - have now added a test and minimised the number of changes, in a different pull request. See #270 |
Fixed through #332 |
Thanks for your work on this @mozz100, sorry it took so long to get merged. |
No worries. I understood - you can't merge unless tests go green :-) I've still no idea why "it worked for me". Glad to see it go in. I have found ansible-lint very valuable. Keep up the good work |
@fetzerch has what might be the answer in c9aa77e#commitcomment-28231581 - presumably Travis's YAML library is different to yours and mine (as it worked on my machine too!). |
Ansible 2.3+ allows variables to be encrypted within YAML files. Pass vault_password (even if it's wrong) to the functions that parse YAML.