Skip to content

Commit

Permalink
fix: ClusterHealth model not following the input we are looking for (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 authored Feb 4, 2025
1 parent e21e67b commit 1cbee6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silverback/cluster/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1cbee6f

Please sign in to comment.