diff --git a/silverback/_cli.py b/silverback/_cli.py index c52e3fd3..c3381bec 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -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: diff --git a/silverback/cluster/client.py b/silverback/cluster/client.py index b8d96e12..acaefcc7 100644 --- a/silverback/cluster/client.py +++ b/silverback/cluster/client.py @@ -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]] = {}