{% if env == 'staging' %} suffix = 'stg.phx2.fedoraproject.org' {% else %} suffix = 'phx2.fedoraproject.org' {% endif %} config = dict( endpoints={ "bugzilla.bugzilla2fedmsg01": [ "tcp://bugzilla2fedmsg01.%s:3000" % suffix, "tcp://bugzilla2fedmsg01.%s:3001" % suffix, ], }, )