mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
parent
1609afbd12
commit
cb76200c7d
119 changed files with 339 additions and 378 deletions
|
@ -178,7 +178,7 @@ class LookupModule(LookupBase):
|
|||
except (AnsibleUndefinedVariable, UndefinedError):
|
||||
continue
|
||||
|
||||
# get subdir if set by task executor, default to files otherwise
|
||||
# get subdir if set by task executor, default to files otherwise
|
||||
subdir = getattr(self, '_subdir', 'files')
|
||||
path = None
|
||||
path = self.find_file_in_search_path(variables, subdir, fn, ignore_missing=True)
|
||||
|
|
|
@ -102,9 +102,9 @@ class LookupModule(LookupBase):
|
|||
vault_conn = HashiVault(**vault_dict)
|
||||
|
||||
for term in terms:
|
||||
key = term.split()[0]
|
||||
value = vault_conn.get()
|
||||
ret.append(value)
|
||||
key = term.split()[0]
|
||||
value = vault_conn.get()
|
||||
ret.append(value)
|
||||
|
||||
return ret
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ class LookupModule(LookupBase):
|
|||
ret.append(result)
|
||||
|
||||
except ConnectionFailure as e:
|
||||
raise AnsibleError('unable to connect to database: %s' % str(e))
|
||||
raise AnsibleError('unable to connect to database: %s' % str(e))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue