Iterate over hosts, not vars.
This commit is contained in:
parent
11bde05e66
commit
c41f3c4b59
1 changed files with 1 additions and 3 deletions
|
@ -8,10 +8,8 @@ def invert_fedmsg_policy(hosts, vars):
|
||||||
Really, returns a list of tuples -- not a dict.
|
Really, returns a list of tuples -- not a dict.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return [('what', 'is going on')] # debugging, obviously.
|
|
||||||
|
|
||||||
inverted = {}
|
inverted = {}
|
||||||
for host in vars:
|
for host in hosts:
|
||||||
prefix = '.'.join([vars[host]['fedmsg_prefix'],
|
prefix = '.'.join([vars[host]['fedmsg_prefix'],
|
||||||
vars[host]['fedmsg_env']])
|
vars[host]['fedmsg_env']])
|
||||||
fqdn = vars[host].get('fedmsg_fqdn', vars[host]['ansible_fqdn'])
|
fqdn = vars[host].get('fedmsg_fqdn', vars[host]['ansible_fqdn'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue