mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
rev: cleaner sorting in _normalize_overrides_from_api
This commit is contained in:
parent
66710e452c
commit
d3ca30d53e
1 changed files with 2 additions and 2 deletions
|
|
@ -180,10 +180,10 @@ def _normalize_overrides_from_api(current):
|
|||
return []
|
||||
|
||||
# Convert mapping to list of key/value dicts
|
||||
items = [{'key': k, 'value': v} for k, v in current.items()]
|
||||
items = [{'key': k, 'value': v} for k, v in sorted(current.items())]
|
||||
|
||||
# Sort for stable comparisons and diff output
|
||||
return sorted(items, key=lambda x: x['key'])
|
||||
return items
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue