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:
@@ -71,7 +71,9 @@ class LookupModule(LookupBase):
|
||||
raise AnsibleLookupError(
|
||||
f"Lookup parameter #{i} should be string or a path object, but got {type(path)}"
|
||||
)
|
||||
result.append(get_fingerprint_from_file(gpg, to_native(path)))
|
||||
result.append(
|
||||
get_fingerprint_from_file(gpg_runner=gpg, path=to_native(path))
|
||||
)
|
||||
return result
|
||||
except GPGError as exc:
|
||||
raise AnsibleLookupError(str(exc))
|
||||
|
||||
Reference in New Issue
Block a user