Skip to content

Commit

Permalink
fix: bots
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Jan 14, 2025
1 parent fbb3bc2 commit f884ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ def new_bot(
def list_bots(cluster: "ClusterClient"):
"""List all bots in a CLUSTER (Regardless of status)"""

if bot_names := cluster.bot_list():
if bot_names := cluster.bots_list():
grouped_bots: dict[str, dict[str, list[Bot]]] = {}
for bot_list in bot_names.values():
for bot in bot_list:
Expand Down
2 changes: 1 addition & 1 deletion silverback/cluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def bots(self) -> dict[str, Bot]:
handle_error_with_response(response)
return {bot.name: bot for bot in map(Bot.model_validate, response.json())}

def bot_list(self) -> dict[str, list[Bot]]:
def bots_list(self) -> dict[str, list[Bot]]:
response = self.get("/bots")
handle_error_with_response(response)
bots_dict: dict[str, list[Bot]] = {}
Expand Down

0 comments on commit f884ea0

Please sign in to comment.