Skip to content

Fix YAML deserialization of unicode - #38554

Merged
cachedout merged 3 commits into
saltstack:2016.3from
multani:fix/30454
Jan 4, 2017
Merged

cachedout merged 3 commits into
saltstack:2016.3from
multani:fix/30454

Conversation

@multani

@multani multani commented Jan 4, 2017

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR proposes a YAML deserializer for unicode values.

It also revert the patch from #30481 as it didn't fix the original problem in #30454 and it's actually broken code since the very beginning (see commit f7712d4 for more info)

What issues does this PR fix or reference?

Fixes #30454

Previous Behavior

When using the yaml filter, Python's unicode values would be serialized as !!python/unicode ... which was not understood by the YAML parser.

New Behavior

The YAML parser is now able to properly deserialize these YAML tagged values.

Tests written?

Yes

Please review Salt's Contributing Guide for best practices.

@cachedout
cachedout merged commit 325dc56 into saltstack:2016.3 Jan 4, 2017
@cachedout

Copy link
Copy Markdown
Contributor

Really nice! Thanks very much, @multani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants