Commit 251310b
committed
fix: ensure idempotence by writing settings in sorted order
Cause: On EL7, the underlying module uses an unordered dict, so the order of the settings being
written can change between role invocations.
Consequence: The role may report changed when nothing actually changed except the order.
Fix: The settings are sorted before being written so that the order is consistent.
Result: The role does not report changed when nothing has changed.
Signed-off-by: Rich Megginson <rmeggins@redhat.com>1 parent 04a7572 commit 251310b
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments