mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue