diff options
author | Adrian Likins <alikins@redhat.com> | 2016-10-19 16:11:09 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2016-10-19 16:11:37 -0400 |
commit | fa8f9e9ead52a91f0b27c98a9f4cfd24d9ea567e (patch) | |
tree | e423bec624b8f5712c05f6633a0bf921b03cc974 /test/integration | |
parent | 257182e46a6d702ed42f05daa8eff93f7c560892 (diff) | |
download | ansible-fa8f9e9ead52a91f0b27c98a9f4cfd24d9ea567e.tar.gz |
Fix test_filters fail because of dict sort (#18105)
Fixes #17308
(cherry picked from commit f99ffb5620384434c02289a33f7169dc3c7229e7)
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/roles/test_filters/files/foo.txt | 2 | ||||
-rw-r--r-- | test/integration/roles/test_filters/templates/foo.j2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/roles/test_filters/files/foo.txt b/test/integration/roles/test_filters/files/foo.txt index c5af545d3a..43c0dbe5e8 100644 --- a/test/integration/roles/test_filters/files/foo.txt +++ b/test/integration/roles/test_filters/files/foo.txt @@ -11,7 +11,7 @@ Dumping the same structure to YAML Dumping the same structure to JSON, but don't pretty print -["this is a list element", {"this": "is a hash element in a list", "where": "endor", "warp": 9}] +["this is a list element", {"this": "is a hash element in a list", "warp": 9, "where": "endor"}] Dumping the same structure to YAML, but don't pretty print diff --git a/test/integration/roles/test_filters/templates/foo.j2 b/test/integration/roles/test_filters/templates/foo.j2 index cf592f98cc..c5979c76c7 100644 --- a/test/integration/roles/test_filters/templates/foo.j2 +++ b/test/integration/roles/test_filters/templates/foo.j2 @@ -7,7 +7,7 @@ Dumping the same structure to YAML Dumping the same structure to JSON, but don't pretty print -{{ some_structure | to_json }} +{{ some_structure | to_json(sort_keys=true) }} Dumping the same structure to YAML, but don't pretty print |