Created
September 2, 2016 16:17
-
-
Save tbielawa/73a41214cb02954f54bfc0858fa2ecb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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