summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Bielawa <timbielawa@gmail.com>2016-09-02 13:58:41 -0700
committerGitHub <noreply@github.com>2016-09-02 13:58:41 -0700
commit88ef051955288fbfaedebe35a12b64d00ac285a1 (patch)
tree821fd8bc56d46608ea0142ab21686e9b5fcc6caa
parent00ff458cc4d5a919d6c0138bbed3e0373afd37c1 (diff)
parent03c1c44e0fbee428a3f0389682effd742e71fe25 (diff)
downloadopenshift-88ef051955288fbfaedebe35a12b64d00ac285a1.tar.gz
openshift-88ef051955288fbfaedebe35a12b64d00ac285a1.tar.bz2
openshift-88ef051955288fbfaedebe35a12b64d00ac285a1.tar.xz
openshift-88ef051955288fbfaedebe35a12b64d00ac285a1.zip
Merge pull request #2405 from tbielawa/FixFilterErrorStringSubstitution
Fix string substitution error in the to_padded_yaml filter
-rw-r--r--filter_plugins/oo_filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index a4dceb679..053de7703 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -625,7 +625,7 @@ class FilterModule(object):
padded = "\n".join([" " * level * indent + line for line in transformed.splitlines()])
return to_unicode("\n{0}".format(padded))
except Exception as my_e:
- raise errors.AnsibleFilterError('Failed to convert: %s', my_e)
+ raise errors.AnsibleFilterError('Failed to convert: %s' % my_e)
@staticmethod
def oo_openshift_env(hostvars):