module.fail_json(msg="the python suds and bigsuds modules is required")
module.fail_json(msg="the python suds and bigsuds modules are required")
server=module.params['server']
user=module.params['user']
@ -1603,6 +1598,12 @@ def main():
validate_certs=module.params['validate_certs']
session=module.params['session']
fact_filter=module.params['filter']
ifvalidate_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')
iffact_filter:
regex=fnmatch.translate(fact_filter)
else:
@ -1617,14 +1618,11 @@ def main():
ifnotall(include_test):
module.fail_json(msg="value of include must be one or more of: %s, got: %s"%(",".join(valid_includes),",".join(include)))