-
Notifications
You must be signed in to change notification settings - Fork 44
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
Bug: ini values need to be python booleans #485
Comments
I suppose
Also needs to be |
cc @arianvp |
So this is as simple as "find all lowercase booleans and uppercase them", or am I missing any nuance here? |
If I may: unfortunately boolean parsing in Ansible is a wildly inconsistent mess, so it's best to assume the worst at the place of consumption, i.e., handle conversion from string. That way you also don't get thrown off when a var is set as string via passing From docs:
(Is there a reason for the hosts file being ini-style?) |
No; we could very well convert it to |
If lowercase false are an issue (including as strings), then there are a lot of issues around
A few of those are in text/sentences, but most are actual values, see pastebin: I can make a PR changing things around, but I need some sort of clear rule on exactly what to do. Is it really as simple as finding in all ini and yaml files, all lowercase boolean values (including strings), and replacing them with non-string uppercase booleans of equal value ? If it is, tell me and I'll just do that. |
At this point, i don't have clear instructions. Do I just change the few values in the original comment above 15 days ago, or do I do a more general edit of all values that match all around all files, following a clear rule (and if so, what is that rule?). I can do a PR easily as soon as I know what to do, which I don't yet. |
@arthurwolf as I see it, there are several possible follow up tasks from here, sorted below from smaller scope to larger scope.
I'd advise you start from the top to familiarise yourself with the issue, submit a PR addressing it and once that's reviewed and merged then move on to the the next. |
We have a few places in
ini
files where we use lower case booleans, which won't work as expected:Not sure what happens with
yml
files but we're not consistent:The text was updated successfully, but these errors were encountered: