We don't have access to facts like ansible_fqdn at this point.

This commit is contained in:
Ralph Bean 2015-06-12 16:47:53 +00:00
parent c41f3c4b59
commit d9b491c892

View file

@ -12,7 +12,7 @@ def invert_fedmsg_policy(hosts, 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'])
fqdn = vars[host].get('fedmsg_fqdn', host)
for cert in vars[host]['fedmsg_certs']:
for topic in cert.get('can_send', []):