From 41e021b2674c28dea7c322c26e90ad16ba48e020 Mon Sep 17 00:00:00 2001 From: Hemanth Nakkina Date: Thu, 17 Oct 2024 16:24:54 +0530 Subject: [PATCH] [masakari-k8s] Fix matrix yaml configuration Health should be a list in masakari matrix yaml configuration. The yaml uses string for single network monitor. Change the health to a list. Change-Id: Iddd61e793b38f76276ed863bee886584a5467722 --- charms/masakari-k8s/src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charms/masakari-k8s/src/charm.py b/charms/masakari-k8s/src/charm.py index dc8e293d..c8c67378 100755 --- a/charms/masakari-k8s/src/charm.py +++ b/charms/masakari-k8s/src/charm.py @@ -168,8 +168,8 @@ class MasakariConfigurationContext(config_contexts.ConfigContext): matrix = [] if active_agents_count == 1: - up = {"health": "up", "action": []} - down = {"health": "down", "action": ["recovery"]} + up = {"health": ["up"], "action": []} + down = {"health": ["down"], "action": ["recovery"]} matrix.extend([up, down]) elif active_agents_count == 2: # Defaults for 2*2 matrix with no actions