From c671d8baf9d6f4705a1b832ae2d96980e5a58db6 Mon Sep 17 00:00:00 2001
From: Jakub Darmach <jakub@stackhpc.com>
Date: Wed, 5 Apr 2023 21:20:03 +0200
Subject: [PATCH] Missing load balancer health monitors fix

In api and etcd load balancer templates we define if Octavia
load balancer healthchecks should be enabled. Corrected
octavia_lb_healthcheck parameter value comparison.

Closes-bug: #2015393
Change-Id: Icee8be92ea3e3121934645049b81b79be9bd046a
(cherry picked from commit f2dc76823c012c4e96ae0f9651c0c4e5596e62fd)
---
 magnum/drivers/common/templates/lb_api.yaml  | 2 +-
 magnum/drivers/common/templates/lb_etcd.yaml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/magnum/drivers/common/templates/lb_api.yaml b/magnum/drivers/common/templates/lb_api.yaml
index 2e9c5b9d4a..5e81b35924 100644
--- a/magnum/drivers/common/templates/lb_api.yaml
+++ b/magnum/drivers/common/templates/lb_api.yaml
@@ -13,7 +13,7 @@ conditions:
   octavia_lb_healthcheck_enabled:
       equals:
       - get_param: octavia_lb_healthcheck
-      - []
+      - True
 
 parameters:
 
diff --git a/magnum/drivers/common/templates/lb_etcd.yaml b/magnum/drivers/common/templates/lb_etcd.yaml
index 85b17cc80b..39e16ac828 100644
--- a/magnum/drivers/common/templates/lb_etcd.yaml
+++ b/magnum/drivers/common/templates/lb_etcd.yaml
@@ -14,7 +14,7 @@ conditions:
   octavia_lb_healthcheck_enabled:
       equals:
       - get_param: octavia_lb_healthcheck
-      - []
+      - True
 
 parameters: