Reformat everything.

This commit is contained in:
Felix Fontein
2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View File

@@ -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]