From c41f3c4b5905dae585b7eaa7c6bdbdb8111d9108 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 12 Jun 2015 16:45:41 +0000 Subject: [PATCH] Iterate over hosts, not vars. --- filter_plugins/fedmsg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/filter_plugins/fedmsg.py b/filter_plugins/fedmsg.py index 6ecde728b9..74f6cf50f6 100644 --- a/filter_plugins/fedmsg.py +++ b/filter_plugins/fedmsg.py @@ -8,10 +8,8 @@ def invert_fedmsg_policy(hosts, vars): Really, returns a list of tuples -- not a dict. """ - return [('what', 'is going on')] # debugging, obviously. - inverted = {} - for host in vars: + for host in hosts: prefix = '.'.join([vars[host]['fedmsg_prefix'], vars[host]['fedmsg_env']]) fqdn = vars[host].get('fedmsg_fqdn', vars[host]['ansible_fqdn'])