Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53a1cf0

Browse files
committed
Merge pull requestalphagov#49 from alphagov/remove-carrenza-preview
Fix up Carrenza and Preview gateways
2 parents60997bd +fc7af84 commit53a1cf0

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-
ifname=='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-
defpreview_carrenza():
219-
"""Select preview environment"""
220-
_set_gateway('preview_carrenza')
221-
222214
@task
223215
defall():
224216
"""Select all machines in current environment"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp