mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 13:53:06 +00:00
Code refactoring (#889)
* Add __all__ to all module and plugin utils. * Convert quite a few positional args to keyword args. * Avoid Python 3.8+ syntax.
This commit is contained in:
@@ -349,7 +349,9 @@ def main() -> t.NoReturn:
|
||||
except (IOError, OSError) as e:
|
||||
module.fail_json(msg=f"Error while reading CSR file from disk: {e}")
|
||||
|
||||
module_backend = select_backend(module, data, validate_signature=True)
|
||||
module_backend = select_backend(
|
||||
module=module, content=data, validate_signature=True
|
||||
)
|
||||
|
||||
try:
|
||||
result = module_backend.get_info()
|
||||
|
||||
Reference in New Issue
Block a user