From 8ecb720463f66c9512955888dc8c7e97e0e225a2 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Mon, 16 Oct 2023 05:59:19 +0000 Subject: [PATCH] Fix queues growth when no peers are ready The queue growth function spots when there are insufficent peers and logs a message but the return statement is missing --- src/charm.py | 1 + 1 file changed, 1 insertion(+) 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]