From: Leo Mylonas Date: Tue, 10 Jun 2025 01:51:10 +0000 (+1000) Subject: mgr: handle possibly undefined template variable in haproxy.cfg.j2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c0772d0c0ccc569244fde0d17fcf7acb4333b08e;p=ceph.git mgr: handle possibly undefined template variable in haproxy.cfg.j2 Signed-off-by: Leo Mylonas --- diff --git a/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 b/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 index 27c0a6d5c714..f2c9acd028d3 100644 --- a/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 +++ b/src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2 @@ -67,7 +67,7 @@ frontend frontend backend backend {% if mode == 'http' %} option forwardfor -{% if backend_spec.ssl %} +{% if backend_spec.ssl is defined and backend_spec.ssl %} default-server ssl default-server verify none {% endif %}