Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tbielawa/73a41214cb02954f54bfc0858fa2ecb8 to your computer and use it in GitHub Desktop.
Save tbielawa/73a41214cb02954f54bfc0858fa2ecb8 to your computer and use it in GitHub Desktop.
From 90753be1fa32088eca3174cc3f6ba11014a2cac5 Mon Sep 17 00:00:00 2001
From: Tim Bielawa <[email protected]>
Date: Fri, 2 Sep 2016 09:16:04 -0700
Subject: [PATCH] Fix string substitution error in the to_padded_yaml filter
---
filter_plugins/oo_filters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index a4dceb6..053de77 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):
--
2.5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment