Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 3b12995

Browse files
committed
Merge branch 'staging'
2 parents a26fb7f + 2d7724c commit 3b12995

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ reconfigures itself when a linked cluster member redeploys, joins or leaves.
66

77
## Version
88

9-
- latest: `dockercloud/haproxy:1.2`
10-
- stable: `dockercloud/haproxy:1.1.1`
9+
- latest: `dockercloud/haproxy:1.2.1`
1110

1211
**Attention** : Please *ALWAYS* use a specific image tag that works for you. Do *NOT* use `dockercloud/haproxy:latest` in any situation other than testing purpose.
1312

haproxy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.2"
1+
__version__ = "1.2.1"

haproxy/haproxycfg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ def get_tcp_section(self, details, services_aliases, tcp_port):
244244
tcp_section = []
245245
enable_ssl, port_num = TcpHelper.parse_port_string(tcp_port, self.ssl_bind_string)
246246
bind_string = get_bind_string(enable_ssl, port_num, self.ssl_bind_string, EXTRA_BIND_SETTINGS)
247-
tcp_routes, self.routes_added = TcpHelper.get_tcp_routes(details, self.specs.get_routes(), tcp_port, port_num)
247+
tcp_routes, routes_added = TcpHelper.get_tcp_routes(details, self.specs.get_routes(), tcp_port, port_num)
248+
if routes_added not in self.routes_added:
249+
self.routes_added.extend(routes_added)
248250
services = TcpHelper.get_service_aliases_given_tcp_port(details, services_aliases, tcp_port)
249251
balance = TcpHelper.get_tcp_balance(details)
250252
options = TcpHelper.get_tcp_options(details, services)

haproxy/parser/new_link_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ def parse(self, service, key, value):
6161
if service in self.service_aliases:
6262
for attr in self.attrs:
6363
if key == attr and not self.details[service][key]:
64-
self.details[service][key] = value
64+
self.details[service][key] = getattr(self, "parse_%s" % key)(value)

0 commit comments

Comments
 (0)