Repository navigation
Conversation
With some LDAP implementations attributes are not stored and returned in the order in which they were added, leading to the state repeatedly reporting changes. Introduce a toggle which enables internal sorting of old and new attributes and restores idempotency in such situations. Signed-off-by: Georg Pfuetzenreuter <[email protected]>
| # convert the value sets to lists before returning them to the | ||
| # user (sorted for easier comparisons) |
There was a problem hiding this comment.
This comment was removed, but sorted is still called on the output below on line 368 attr: sorted(vals).
There was a problem hiding this comment.
Thanks for the pointer, that indeed needs to go too.
Currently I have this a bit stalled because I submitted python-ldap/python-ldap#604 in parallel, and in case that gets approved, it would be nice to make strict_order support a list of attributes instead of only a general toggle. Generally the improvements here would not do much without the patch in python-ldap (besides improving the output after removing the sorted() you mention), because the change would be reported but never committed.
|
We are no longer accepting Bugfix releases on the 3006.x branch. Please rebase this on the 3008.x branch. |
|
@tacerus 3006.x has entered security only. Please rebase these changes on 3008.x |
What does this PR do?
With some LDAP implementations attributes are not stored and returned in the order in which they were added, leading to the state repeatedly reporting changes. Introduce a toggle which enables internal sorting of old and new attributes and restores idempotency in such situations.
What issues does this PR fix or reference?
Fixes #68626.
Previous Behavior
Stray changes upon ordering differences.
New Behavior
No changes if ordering is not deemed relevant.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes