mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
credstash lookup plugin: python 2.6-compatible string.format()
This commit is contained in:
parent
c4629b72e0
commit
87ef53c962
1 changed files with 2 additions and 2 deletions
|
@ -43,9 +43,9 @@ class LookupModule(LookupBase):
|
|||
try:
|
||||
val = credstash.getSecret(term, **kwargs)
|
||||
except credstash.ItemNotFound:
|
||||
raise AnsibleError('Key {} not found'.format(term))
|
||||
raise AnsibleError('Key {0} not found'.format(term))
|
||||
except Exception, e:
|
||||
raise AnsibleError('Encountered exception while fetching {}: {}'.format(term, e.message))
|
||||
raise AnsibleError('Encountered exception while fetching {0}: {1}'.format(term, e.message))
|
||||
ret.append(val)
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Reference in a new issue