Make sure salt.utils.jinja.SerializerExtension calls it's parent class __init__ method.

This commit is contained in:
Pedro Algarvio 2013-07-13 17:15:25 +01:00
parent f4b015b88e
commit 7d90720688

View File

@ -126,7 +126,7 @@ class SerializerExtension(Extension):
'''
def __init__(self, environment):
self.environment = environment
super(SerializerExtension, self).__init__(environment)
environment.filters.update({
'yaml': partial(self.format, formatter='yaml'),
'json': partial(self.format, formatter='json')