Merge "[masakari-k8s] Fix matrix yaml configuration" into main

This commit is contained in:
Zuul 2024-10-17 12:06:10 +00:00 committed by Gerrit Code Review
commit 53d091b918

View File

@ -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