Skip to content

Commit 7e1d132

Browse files
committed
templates/home/user/.aws/config.j2: sort profile/config so tests pass all the time.
1 parent 59a1f46 commit 7e1d132

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/home/user/.aws/config.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# {{ ansible_managed }}
22
{% if item.value['configuration'] is defined %}
3-
{% for profile, config in item.value['configuration'].iteritems() %}
3+
{% for profile, config in item.value['configuration'].iteritems() | sort %}
44

55
{% if profile == 'default' %}
66
[{{ profile }}]

tests/tasks/configuration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
changed_when: no
1414

1515
- name: ensure credentials was generated as expected
16-
command: "diff -q -w ~{{ test_user }}/.aws/credentials ~{{ test_user }}/.aws/credentials.expected"
16+
command: "diff -w ~{{ test_user }}/.aws/credentials ~{{ test_user }}/.aws/credentials.expected"
1717
changed_when: no
1818

1919
- name: copy to server expected configuration
@@ -26,5 +26,5 @@
2626
changed_when: no
2727

2828
- name: ensure config was generated as expected
29-
command: "diff -q -w ~{{ test_user }}/.aws/config ~{{ test_user }}/.aws/config.expected"
29+
command: "diff -w ~{{ test_user }}/.aws/config ~{{ test_user }}/.aws/config.expected"
3030
changed_when: no

0 commit comments

Comments
 (0)