Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Be still more careful with this mm2 field.
Browse files Browse the repository at this point in the history
This should fix the bug introduced in #295 that @vhalli and @inheritedburrp hit in #299.
  • Loading branch information
ralphbean committed Jul 27, 2015
1 parent 55b752b commit 7a6a3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedmsg_meta_fedora_infrastructure/mm2.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def objects(self, msg, **config):
if 'mirrormanager.crawler' in msg['topic']:
if 'hosts' in msg['msg']:
return set([
'mirrors/%s' % host['host']
'mirrors/%s' % host.get('host', host.get('name'))
for host in msg['msg']['hosts']
])
else:
Expand Down

0 comments on commit 7a6a3e1

Please sign in to comment.