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
Making casting optional #10
Conversation
Hm, what is your use case for this, or what's the issue with the "automatic" casting? To be honest, that option looks a little bit ugly, and disables casting for all values, if e.g. it's required for a specific column only. Maybe the whole casting isn't necessary at all, if the playbook sets proper types (which should be possible, looking at ansible/ansible#15249). And, besides that I'd like to add options to the example/documentation, so I need to understand why it's required :) |
Good questions. |
By "operator" you mean the person writing the playbook? Then we both agree that we should get rid of the casting. Right now I'm fixing all the tests, they stopped working with ansible 2 (?) when it removed Once I have a test-environment set up, it's much easier for me to try out the possible options, and based on the knowledge gained from that we could decide which option is best to support your use case. An additional option is to cast conditionally based on type-information gathered from the database itself, as I just found in a fork: koichirok@45e04ee That seems to be a valid solution, too. |
Hey, can you have a look at the experimental-branch (97ecd04)? My idea was to have equality-testing with type-coercion/implicit casting, just like JS's It works for my test-case and work in manual testing, so if it work for you, too, I would merge it to master and release a new version. |
Works on my setup 👍 Merge away |
Thanks, now in master and tagged. |
No description provided.