* Fix to error if validate_cert is True and python doesn't support it.
* Only globally disable certificate checking if really needed. Use
bigip verify parameter if available instead.
* Remove public disable certificate function to make it less likely
people will attempt to reuse that
module.fail_json(msg="the python bigsuds module is required")
ifnotmodule.params['validate_certs']:
disable_ssl_cert_validation()
ifmodule.params['validate_certs']:
importssl
ifnothasattr(ssl,'SSLContext'):
module.fail_json(msg='bigsuds does not support verifying certificates with python < 2.7.9. Either update python or set validate_certs=False on the task')