mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
E501 fixes (#22879)
This commit is contained in:
@@ -1640,7 +1640,9 @@ def main():
|
||||
if validate_certs:
|
||||
import ssl
|
||||
if not hasattr(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')
|
||||
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'
|
||||
)
|
||||
|
||||
if fact_filter:
|
||||
regex = fnmatch.translate(fact_filter)
|
||||
|
||||
@@ -329,7 +329,9 @@ def main():
|
||||
if module.params['validate_certs']:
|
||||
import ssl
|
||||
if not hasattr(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')
|
||||
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'
|
||||
)
|
||||
|
||||
server = module.params['server']
|
||||
server_port = module.params['server_port']
|
||||
|
||||
@@ -319,7 +319,9 @@ def main():
|
||||
if module.params['validate_certs']:
|
||||
import ssl
|
||||
if not hasattr(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')
|
||||
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'
|
||||
)
|
||||
|
||||
server = module.params['server']
|
||||
server_port = module.params['server_port']
|
||||
|
||||
@@ -409,7 +409,9 @@ def main():
|
||||
if module.params['validate_certs']:
|
||||
import ssl
|
||||
if not hasattr(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')
|
||||
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'
|
||||
)
|
||||
|
||||
server = module.params['server']
|
||||
server_port = module.params['server_port']
|
||||
|
||||
@@ -396,7 +396,9 @@ def main():
|
||||
if module.params['validate_certs']:
|
||||
import ssl
|
||||
if not hasattr(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')
|
||||
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'
|
||||
)
|
||||
|
||||
server = module.params['server']
|
||||
server_port = module.params['server_port']
|
||||
|
||||
@@ -683,7 +683,9 @@ def main():
|
||||
if module.params['validate_certs']:
|
||||
import ssl
|
||||
if not hasattr(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')
|
||||
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'
|
||||
)
|
||||
|
||||
server = module.params['server']
|
||||
server_port = module.params['server_port']
|
||||
|
||||
Reference in New Issue
Block a user