-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Don't skip an inventory source just because it has a comma #35002
Conversation
… it's also doesn't exist as a path. Fixes ansible#34931
The test
|
There's an inherent collision here between valid path names So I'm not against this getting into devel but I think we're going to have further problems in the future (likely from the other direction....) I think we should create separate syntax or cli switches for inventory files versus hosts to add on the cli in the future and deprecate putting both values in the same switch. (-i @hostfile,new_host )? But changing/removing CLI switches is a long term thing that we probably have to give users more than a normal deprecation cycle to get used to. So maybe this is a good enough change for now? (What if we demand that there's "/" in any inventory path that also has a comma? That would solve the existing reported issue.) |
The decision was made in the 2018-01-23 core meeting to move forward with merging this to devel and to temp-staging-post-2.4.3 for a potential inclusion for a 2.4.4 release |
…5002) * Don't skip an inventory source just because it has a comma, make sure it's also doesn't exist as a path. Fixes ansible#34931 * Add integration test for inventory path with commas
SUMMARY
Don't skip an inventory source just because it has a comma, make sure it's also doesn't exist as a path. Fixes #34931
ISSUE TYPE
COMPONENT NAME
lib/ansible/vars/manager.py
ANSIBLE VERSION
ADDITIONAL INFORMATION