From 87e62afc46a1ff9400d683074342daeab6610370 Mon Sep 17 00:00:00 2001 From: johnson2427 Date: Sun, 2 Feb 2025 13:24:15 -0600 Subject: [PATCH] fix: ClusterHealth model not following the input we are looking for --- silverback/cluster/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silverback/cluster/types.py b/silverback/cluster/types.py index 4eb8b9b6..031613b3 100644 --- a/silverback/cluster/types.py +++ b/silverback/cluster/types.py @@ -318,7 +318,7 @@ class ClusterHealth(BaseModel): @field_validator("bots", mode="before") # TODO: Fix so this is default def convert_bot_health(cls, bots): - return {b["instance_id"]: ServiceHealth.model_validate(b) for b in bots} + return {k: ServiceHealth.model_validate(b) for k, b in bots.items()} @computed_field def cluster(self) -> ServiceHealth: