Skip to content

Commit 6b36bfc

Browse files
committed
Release 0.1-2
- Make sure nginx-asg-sync works with NGINX Plus R13
1 parent 37c6c34 commit 6b36bfc

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

Diff for: cmd/sync/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
var configFile = flag.String("config_path", "/etc/nginx/aws.yaml", "Path to the config file")
2222
var logFile = flag.String("log_path", "", "Path to the log file. If the file doesn't exist, it will be created")
23-
var version = "0.1-1"
23+
var version = "0.1-2"
2424

2525
const connTimeoutInSecs = 10
2626

Diff for: cmd/sync/nginx.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ func checkIfUpstreamConfIsAccessible(httpClient *http.Client, endpoint string) e
118118
return fmt.Errorf("upstream_conf endpoint %v is not accessible: %v", endpoint, err)
119119
}
120120

121-
if resp.StatusCode != http.StatusNotFound {
122-
return fmt.Errorf("upstream_conf endpoint %v is not accessible: expected 404 response, got %v", endpoint, resp.StatusCode)
121+
if resp.StatusCode != http.StatusNotFound && resp.StatusCode != http.StatusBadRequest {
122+
return fmt.Errorf("upstream_conf endpoint %v is not accessible: expected 404 or 400 response, got %v", endpoint, resp.StatusCode)
123123
}
124124

125125
bodyStr := string(body)

Diff for: os-packages/debian/changelog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
nginx-asg-sync (0.1-2-%%CODENAME%%) unstable; urgency=low
2+
3+
* 0.1-2
4+
* Make sure nginx-asg-sync works with NGINX Plus R13
5+
6+
-- Michael Pleshakov <[email protected]> Wed, 30 Aug 2017 21:03:28 +0000
7+
18
nginx-asg-sync (0.1-1-%%CODENAME%%) unstable; urgency=low
29

310
* 0.1-1

Diff for: os-packages/rpm/SPECS/nginx-asg-sync.spec

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: NGINX Plus integration with AWS Auto Scaling groups
55
Name: nginx-asg-sync
66
Version: 0.1
7-
Release: 1%{?dist}
7+
Release: 2%{?dist}
88
Vendor: Nginx Software, Inc.
99
URL: https://github.com/nginxinc/nginx-asg-sync
1010
Packager: Nginx Software, Inc. <https://www.nginx.com>
@@ -110,6 +110,10 @@ if [ $1 -ge 1 ]; then
110110
fi
111111

112112
%changelog
113+
* Wed Aug 30 2017 Michael Pleshakov <[email protected]>
114+
- 0.1-2
115+
- Make sure nginx-asg-sync works with NGINX Plus R13
116+
113117
* Fri Mar 03 2017 Michael Pleshakov <[email protected]>
114118
- 0.1-1
115119
- First release

0 commit comments

Comments
 (0)