From 74591e19b519ebe1b095d7ab53575f9bc770c116 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 1 Mar 2021 14:34:41 -0800 Subject: [PATCH] filter_plugins / fedmsg: try and make staging only talk to staging hosts I think the only reason this worked in phx2 was because we also had a firewall rule that was blocking the staging subnet on all prod machines. Instead of doing that here, lets just make fedmsg only deal with the staging hosts in staging. The only thing this might break is things that aren't in staging_friendly that should be. Signed-off-by: Kevin Fenzi --- 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 08b4c3c16b..938d4e77dd 100644 --- a/filter_plugins/fedmsg.py +++ b/filter_plugins/fedmsg.py @@ -9,7 +9,7 @@ def invert_fedmsg_policy(groups, vars, env): """ if env == 'staging': - hosts = groups['all'] + groups['staging'] + hosts = groups['staging'] else: hosts = [h for h in groups['all'] if h not in groups['staging']]