]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: handle possibly undefined template variable in haproxy.cfg.j2 64674/head
authorLeo Mylonas <leomylonas@users.noreply.github.com>
Tue, 10 Jun 2025 01:51:10 +0000 (11:51 +1000)
committerAdam King <adking@redhat.com>
Thu, 24 Jul 2025 15:14:40 +0000 (11:14 -0400)
Signed-off-by: Leo Mylonas <leomylonas@users.noreply.github.com>
(cherry picked from commit c0772d0c0ccc569244fde0d17fcf7acb4333b08e)

src/pybind/mgr/cephadm/templates/services/ingress/haproxy.cfg.j2

index 27c0a6d5c71471d33c44e46013bcf6aa881756a5..f2c9acd028d3aa1ebcd3e5494014f1c7cff2c808 100644 (file)
@@ -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 %}