Skip to content

Commit 30d29ac

Browse files
committed
bug fix
1 parent 55fe961 commit 30d29ac

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Members of an Nginx Plus upstream group can be divided into a Blue environment a
3030

3131
## Installation
3232

33-
* Copy the latest JAR file from the [releases page](https://github.com/xebialabs-community/xld-nginx-plus-plugin/releases) into the `XL_DEPLOY_SERVER/plugins` directory.
34-
* Restart the XL Deploy server.
33+
* Copy the latest JAR file from the [releases page](https://github.com/xebialabs-community/xld-nginx-plus-plugin/releases) into the `XL_DEPLOY_SERVER/plugins` directory.
34+
* Restart the XL Deploy server.
3535

3636
## Usage
3737

src/main/resources/nginxplus/rule.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ def determine_if_noop(deltas):
4040

4141
def generate_steps(containers, context):
4242
for container in containers:
43-
sick_step = step(container, "down")
44-
health_step = step(container, "up")
45-
context.addStep(sick_step)
46-
context.addStep(health_step)
47-
48-
def step(container, type):
49-
server_name = container.serverName
50-
upstream_name = container.upstreamName
51-
api_version = container.apiVersion
52-
vn = container.nginxServer
53-
return steps.jython(description="Mark [%s] as %s in Nginx [%s], api version is [%s]" % (server_name, type, vn.name, api_version), order=5,
54-
script="nginxplus/%s-server.py" % (type),
43+
server_name = container.serverName
44+
upstream_name = container.upstreamName
45+
api_version = container.apiVersion
46+
vn = container.nginxServer
47+
sick_step = steps.jython(description="Mark test [%s] as down in Nginx [%s], api version is [%s]" % (server_name, vn.name, api_version), order=5,
48+
script="nginxplus/down-server.py",
5549
jython_context={"server_name": server_name, "upstream_name": upstream_name, "api_version": api_version,
5650
"nginx_url": vn.url})
51+
health_step = steps.jython(description="Mark test [%s] as up in Nginx [%s], api version is [%s]" % (server_name, vn.name, api_version), order=95,
52+
script="nginxplus/up-server.py",
53+
jython_context={"server_name": server_name, "upstream_name": upstream_name, "api_version": api_version,
54+
"nginx_url": vn.url})
55+
context.addStep(sick_step)
56+
context.addStep(health_step)
5757

5858

5959
generate_steps(extract_nginx_aware_containers(deltas), context)

0 commit comments

Comments
 (0)