From 1cbee6f6f66b6ff3fd795753b7a3dfb058f8a47e Mon Sep 17 00:00:00 2001 From: johnson2427 <37009091+johnson2427@users.noreply.github.com> Date: Tue, 4 Feb 2025 11:21:26 -0600 Subject: [PATCH] fix: ClusterHealth model not following the input we are looking for (#194) --- 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 85fdff62..ba23f05d 100644 --- a/silverback/cluster/types.py +++ b/silverback/cluster/types.py @@ -312,7 +312,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: