Fix unicode constructor in custom YAML loader

2e7f743 added this in the wrong place, it should not have been added
within the if block since we will _always_ want this constructor
available.
This commit is contained in:
Erik Johnson 2017-07-28 15:35:30 -05:00
parent 4b16109122
commit fcf45889dd

View File

@ -45,9 +45,9 @@ class SaltYamlSafeLoader(yaml.SafeLoader, object):
self.add_constructor(
u'tag:yaml.org,2002:omap',
type(self).construct_yaml_map)
self.add_constructor(
u'tag:yaml.org,2002:python/unicode',
type(self).construct_unicode)
self.add_constructor(
u'tag:yaml.org,2002:python/unicode',
type(self).construct_unicode)
self.dictclass = dictclass
def construct_yaml_map(self, node):