diff options
author | Matt Clay <matt@mystile.com> | 2019-03-13 16:43:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 16:43:26 -0700 |
commit | 7f0e09aa3152597cde7007ba86b29a489a9b8cbf (patch) | |
tree | 395a78ceeb8e71ef7558a55c04dc065740a73c54 /changelogs | |
parent | b67505d271ee8794a44073328a9aacdea22ed85a (diff) | |
download | ansible-7f0e09aa3152597cde7007ba86b29a489a9b8cbf.tar.gz |
Keep existing to_yaml behavior with pyyaml >= 5.1. (#53772)
In pyyaml versions before 5.1 the default_flow_style for yaml.dump
was None. Starting with 5.1 it is now False. This change explicitly
sets the value to None to maintain the original to_yaml behavior.
The change to pyyaml was made in the following commit:
https://github.com/yaml/pyyaml/commit/507a464ce62c933bf667b2296a96ad45f0147873
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/to_yaml-default_flow_style.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/to_yaml-default_flow_style.yaml b/changelogs/fragments/to_yaml-default_flow_style.yaml new file mode 100644 index 0000000000..5dee7c51be --- /dev/null +++ b/changelogs/fragments/to_yaml-default_flow_style.yaml @@ -0,0 +1,2 @@ +minor_changes: + - "``to_yaml`` filter updated to maintain formatting consistency when used with ``pyyaml`` versions 5.1 and later (https://github.com/ansible/ansible/pull/53772)" |