Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1752fb9

Browse files
committed
Fix incident.fail_to_mirror
`nginx_kill()` doesn't exist.
1 parent 812ecaf commit 1752fb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

incident.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from fabric.api import *
2+
from fabric.tasks import execute
23
import nginx
34
import puppet
45

@@ -7,7 +8,7 @@
78
def fail_to_mirror():
89
"""Fails the site to the mirror by stopping nginx on the cache nodes"""
910
puppet.disable("Fabric fail_to_mirror task invoked")
10-
nginx_kill()
11+
execute(nginx.kill)
1112
print("Disabled Puppet and www.gov.uk vhost, remember to re-enable and re-run puppet to restore previous state")
1213

1314
@task

0 commit comments

Comments
 (0)