PEP 8 E111 & E114 cleanup. (#20838)

This commit is contained in:
Matt Clay 2017-01-30 15:01:47 -08:00 committed by GitHub
commit cb76200c7d
119 changed files with 339 additions and 378 deletions

View file

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

View file

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

View file

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