Make pylint happy. (#789)

pull/790/head
Felix Fontein 2024-08-07 14:48:58 +02:00 committed by GitHub
parent 114a29f4ea
commit e42f8e0d0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -487,6 +487,7 @@ def main():
# If the item is not a string nor integer # If the item is not a string nor integer
else: else:
module.fail_json(msg="tls_ctx_options must be a string or integer, got {0!r}".format(tls_ctx_option)) module.fail_json(msg="tls_ctx_options must be a string or integer, got {0!r}".format(tls_ctx_option))
tls_ctx_option_int = 0 # make pylint happy; this code is actually unreachable
try: try:
# Add the int value of the item to ctx options # Add the int value of the item to ctx options

View File

@ -398,6 +398,8 @@ def main():
module.fail_json(msg=missing_required_lib('cryptography >= {0}'.format(MINIMAL_CRYPTOGRAPHY_VERSION)), module.fail_json(msg=missing_required_lib('cryptography >= {0}'.format(MINIMAL_CRYPTOGRAPHY_VERSION)),
exception=CRYPTOGRAPHY_IMP_ERR) exception=CRYPTOGRAPHY_IMP_ERR)
dhparam = DHParameterCryptography(module) dhparam = DHParameterCryptography(module)
else:
raise AssertionError('Internal error: unknown backend')
if module.check_mode: if module.check_mode:
result = dhparam.dump() result = dhparam.dump()