Browse Source

Merge pull request #2405 from tbielawa/FixFilterErrorStringSubstitution

Fix string substitution error in the to_padded_yaml filter
Tim Bielawa 8 năm trước cách đây
mục cha
commit
88ef051955
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      filter_plugins/oo_filters.py

+ 1 - 1
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):