mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
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:
parent
4b16109122
commit
fcf45889dd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user