diff --git a/files/fedmsg/base.py.j2 b/files/fedmsg/base.py.j2 index cab02ff1b2..489c93b006 100644 --- a/files/fedmsg/base.py.j2 +++ b/files/fedmsg/base.py.j2 @@ -2,7 +2,7 @@ config = dict( # Set this to dev if you're hacking on fedmsg or an app locally. # Set to stg or prod if running in the Fedora Infrastructure. - {% if environment equals 'staging' %} + {% if environment == 'staging' %} environment="stg", {% else %} environment="prod", diff --git a/files/fedmsg/endpoints.py.j2 b/files/fedmsg/endpoints.py.j2 index 33755878d2..e51539756e 100644 --- a/files/fedmsg/endpoints.py.j2 +++ b/files/fedmsg/endpoints.py.j2 @@ -1,4 +1,4 @@ -{% if environment equals 'staging' %} +{% if environment == 'staging' %} suffix = 'stg.phx2.fedoraproject.org' non_phx_suffix = 'stg.fedoraproject.org' {% else %} @@ -28,7 +28,7 @@ config = dict( "tcp://releng01.%s:3000" % suffix, "tcp://releng01.%s:3001" % suffix, ], -{% if not environment equals 'staging' %} +{% if not environment == 'staging' %} "bodhi.app03": [ "tcp://app03.%s:300%i" % (suffix, i) for i in range(8) diff --git a/files/fedmsg/pkgdb.py.j2 b/files/fedmsg/pkgdb.py.j2 index 75849ad8ba..bfb180c328 100644 --- a/files/fedmsg/pkgdb.py.j2 +++ b/files/fedmsg/pkgdb.py.j2 @@ -1,4 +1,4 @@ -{% if environment equals 'staging' %} +{% if environment == 'staging' %} suffix = 'stg.phx2.fedoraproject.org' non_phx_suffix = 'stg.fedoraproject.org' {% else %} @@ -16,7 +16,7 @@ config = dict( "tcp://app02.%s:301%i" % (suffix, i) for i in range(6) ], -{% if not environment equals 'staging' %} +{% if not environment == 'staging' %} "pkgdb.app03": [ "tcp://app03.%s:301%i" % (suffix, i) for i in range(6) diff --git a/files/fedmsg/relay.py.j2 b/files/fedmsg/relay.py.j2 index 43cb596c95..5266e77e41 100644 --- a/files/fedmsg/relay.py.j2 +++ b/files/fedmsg/relay.py.j2 @@ -1,4 +1,4 @@ -{% if environment equals 'staging' %} +{% if environment == 'staging' %} suffix = 'stg.phx2.fedoraproject.org' non_phx_suffix = 'stg.fedoraproject.org' {% else %}