From f56855bd164b60c7d7bf25d8c53ad3746159f214 Mon Sep 17 00:00:00 2001 From: Pritpal Sabharwal Date: Thu, 28 Nov 2019 19:21:32 -0800 Subject: [PATCH] Don't enforce the use of lb_method in upstream. (#199) --- templates/http/default.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/http/default.conf.j2 b/templates/http/default.conf.j2 index 9fcf61b..02e623c 100644 --- a/templates/http/default.conf.j2 +++ b/templates/http/default.conf.j2 @@ -3,7 +3,9 @@ {% if item.value.upstreams is defined and item.value.upstreams %} {% for upstream in item.value.upstreams %} upstream {{ item.value.upstreams[upstream].name }} { +{% if item.value.upstreams[upstream].lb_method is defined and item.value.upstreams[upstream].lb_method | length %} {{ item.value.upstreams[upstream].lb_method }}; +{% endif %} {% if item.value.upstreams[upstream].zone_name is defined and item.value.upstreams[upstream].zone_name %} zone {{ item.value.upstreams[upstream].zone_name }} {{ item.value.upstreams[upstream].zone_size }}; {% endif %}