Skip to content

Commit 53a1cf0

Browse files
committed
Merge pull request alphagov#49 from alphagov/remove-carrenza-preview
Fix up Carrenza and Preview gateways
2 parents 60997bd + fc7af84 commit 53a1cf0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

fabfile.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ def _set_gateway(name):
182182
setting and makes sure that the correct known_hosts file will be consulted,
183183
then dynamically fetches a list of hosts from the gateway box.
184184
"""
185-
if name == 'preview_carrenza':
186-
env.gateway = 'jumpbox.provider1.preview.govuk.service.gov.uk'
187-
else:
188-
env.gateway = 'jumpbox.{0}.alphagov.co.uk'.format(name)
185+
env.gateway = 'jumpbox.{0}.alphagov.co.uk'.format(name)
189186
env.system_known_hosts = _fetch_known_hosts()
190187
env.roledefs.fetch()
191188

@@ -214,11 +211,6 @@ def preview():
214211
"""Select preview environment"""
215212
_set_gateway('preview')
216213

217-
@task
218-
def preview_carrenza():
219-
"""Select preview environment"""
220-
_set_gateway('preview_carrenza')
221-
222214
@task
223215
def all():
224216
"""Select all machines in current environment"""

0 commit comments

Comments
 (0)