Sort things for idempotence.
This commit is contained in:
parent
d9b491c892
commit
c2fc9578c8
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ def invert_fedmsg_policy(hosts, vars):
|
|||
inverted[key].append(cert['service'] + '-' + fqdn)
|
||||
|
||||
result = inverted.items()
|
||||
# Sort things so they come out in a reliable order (idempotence)
|
||||
[inverted[key].sort() for key in inverted]
|
||||
result.sort(key=operator.itemgetter(0))
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue