diff --git a/src/charm.py b/src/charm.py index 385e78d..5bacc7e 100755 --- a/src/charm.py +++ b/src/charm.py @@ -398,6 +398,7 @@ def grow_queues_onto_unit(self, unit) -> None: queue_members = [len(q["members"]) for q in api.list_quorum_queues()] if not queue_members: logging.debug("No queues found, queue growth skipped") + return queue_members.sort() selector = self.get_queue_growth_selector( queue_members[0], queue_members[-1]