From d9b491c89202910f8df2bd4980ea4693397dbd4f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 12 Jun 2015 16:47:53 +0000 Subject: [PATCH] We don't have access to facts like ansible_fqdn at this point. --- filter_plugins/fedmsg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_plugins/fedmsg.py b/filter_plugins/fedmsg.py index 74f6cf50f6..a6622dee7a 100644 --- a/filter_plugins/fedmsg.py +++ b/filter_plugins/fedmsg.py @@ -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', []):