Update f5 validate_certs functionality to do the right thing on multiple python versions

This requires the implementation in the module_utils code here
https://github.com/ansible/ansible/pull/13667 to funciton
This commit is contained in:
Toshio Kuratomi
2015-12-24 11:57:15 -08:00
committed by Matt Clay
parent d2db491098
commit 6a02b17a2e
6 changed files with 28 additions and 27 deletions

View File

@@ -57,7 +57,8 @@ options:
validate_certs:
description:
- If C(no), SSL certificates will not be validated. This should only be used
on personally controlled sites using self-signed certificates.
on personally controlled sites. Prior to 2.0, this module would always
validate on python >= 2.7.9 and never validate on python <= 2.7.8
required: false
default: 'yes'
choices: ['yes', 'no']
@@ -290,7 +291,7 @@ def main():
module.fail_json(msg="host parameter invalid when state=absent")
try:
api = bigip_api(server, user, password)
api = bigip_api(server, user, password, validate_certs)
result = {'changed': False} # default
if state == 'absent':