mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 21:33:00 +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:
@@ -52,7 +52,7 @@ class PrivateKeyModule:
|
||||
module.fail_json(msg=f"Cannot decode Base64 encoded data: {e}")
|
||||
else:
|
||||
data = to_bytes(content)
|
||||
module_backend.set_existing(data)
|
||||
module_backend.set_existing(privatekey_bytes=data)
|
||||
|
||||
def generate(self, module: AnsibleActionModule) -> None:
|
||||
"""Generate a keypair."""
|
||||
|
||||
Reference in New Issue
Block a user