filter_plugins/fedmsg: make the filter work with python3

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-06-04 17:52:20 +02:00
parent 11bd660313
commit 2fe4ae9440
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def invert_fedmsg_policy(groups, vars, env):
inverted[key] = inverted.get(key, [])
inverted[key].append(cert['service'] + '-' + fqdn)
result = inverted.items()
result = list(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))