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

Commit 44abb6b

Browse files
committed
fix the exception of merge same virtualhost using compose v1
1 parent 2530556 commit 44abb6b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

haproxy/parser/base_parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ def _merge_services_with_same_vhost(self):
2525
del self.details[service_alias]
2626

2727
for route in self.routes[service_alias]:
28-
self.routes[services_with_same_vhost[service_alias]].append(route)
28+
if services_with_same_vhost[service_alias] not in self. routes:
29+
self.routes[services_with_same_vhost[service_alias]] = [route]
30+
else:
31+
self.routes[services_with_same_vhost[service_alias]].append(route)
2932
del self.routes[service_alias]
3033

3134
vhosts = []

0 commit comments

Comments
 (0)