From 87ef53c9629d7e2706895966d6385080fcfaa2b0 Mon Sep 17 00:00:00 2001 From: Scott Cunningham Date: Wed, 5 Aug 2015 23:40:43 -0700 Subject: [PATCH] credstash lookup plugin: python 2.6-compatible string.format() --- lib/ansible/plugins/lookup/credstash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/lookup/credstash.py b/lib/ansible/plugins/lookup/credstash.py index 5b4a0c0c406..6587d525ffa 100644 --- a/lib/ansible/plugins/lookup/credstash.py +++ b/lib/ansible/plugins/lookup/credstash.py @@ -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