Hello All, I'm working on a custom module to update it for a new driver version (pymongo 4.0). A lot of "ssl" options have been replaced with "tls" equivalents. Most of these are of the same type, so I've added the new name, with a alias to the old one to preserve compatibility. I have a problem with one parameter....
tlsAllowInvalidCertificates=dict(type='bool', default=False), alias=['ssl_cert_reqs']) The original ssl_cert_reqs argument is a string. These string values map to the new boolean values. I basically want to map the strings as follows.. CERT_NONE - True CERT_REQUIRED - False But also allow boolean values to be accepted. Is there a way of handling this easily? Cheers, Rhys -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c330853-2708-405c-bd24-d4d9f727eee3n%40googlegroups.com.
