Skip to content

Commit

Permalink
Make pylint happy. (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Aug 7, 2024
1 parent 114a29f commit e42f8e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/modules/get_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ def main():
# If the item is not a string nor integer
else:
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:
# Add the int value of the item to ctx options
Expand Down
2 changes: 2 additions & 0 deletions plugins/modules/openssl_dhparam.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ def main():
module.fail_json(msg=missing_required_lib('cryptography >= {0}'.format(MINIMAL_CRYPTOGRAPHY_VERSION)),
exception=CRYPTOGRAPHY_IMP_ERR)
dhparam = DHParameterCryptography(module)
else:
raise AssertionError('Internal error: unknown backend')

if module.check_mode:
result = dhparam.dump()
Expand Down

0 comments on commit e42f8e0

Please sign in to comment.