mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Reformat everything.
This commit is contained in:
@@ -76,11 +76,7 @@ class LookupModule(LookupBase):
|
||||
raise AnsibleLookupError(f"No private key found for item {item_id}.")
|
||||
|
||||
if ssh_format:
|
||||
return (
|
||||
private_key_field.get("ssh_formats", {})
|
||||
.get("openssh", {})
|
||||
.get("value", "")
|
||||
)
|
||||
return private_key_field.get("ssh_formats", {}).get("openssh", {}).get("value", "")
|
||||
return private_key_field.get("value", "")
|
||||
|
||||
def run(self, terms, variables=None, **kwargs):
|
||||
@@ -112,7 +108,4 @@ class LookupModule(LookupBase):
|
||||
)
|
||||
op.assert_logged_in()
|
||||
|
||||
return [
|
||||
self.get_ssh_key(op.get_raw(term, vault), term, ssh_format=ssh_format)
|
||||
for term in terms
|
||||
]
|
||||
return [self.get_ssh_key(op.get_raw(term, vault), term, ssh_format=ssh_format) for term in terms]
|
||||
|
||||
Reference in New Issue
Block a user