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 <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-03-01 14:34:41 -08:00
parent 7c245c1acf
commit 74591e19b5

View file

@ -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']]