From 3adfc0f46bd038d3223891f9195cae8e369c1101 Mon Sep 17 00:00:00 2001 From: Xavier Barbosa Date: Fri, 19 Jul 2013 17:19:05 +0200 Subject: [PATCH] make it works for python 2.6 --- salt/utils/jinja.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/utils/jinja.py b/salt/utils/jinja.py index 76beca7cc9..efc459bb09 100644 --- a/salt/utils/jinja.py +++ b/salt/utils/jinja.py @@ -176,7 +176,7 @@ class SerializerExtension(Extension, object): try: return yaml.load(value) except AttributeError: - raise TemplateRuntimeError("Unable to load yaml from {}".format(value)) + raise TemplateRuntimeError("Unable to load yaml from {0}".format(value)) def load_json(self, value): if isinstance(value, TemplateModule): @@ -184,7 +184,7 @@ class SerializerExtension(Extension, object): try: return json.loads(value) except (ValueError, TypeError): - raise TemplateRuntimeError("Unable to load json from {}".format(value)) + raise TemplateRuntimeError("Unable to load json from {0}".format(value)) def parse(self, parser): if parser.stream.current.value == "import_yaml":