From 05a316cdd6932f52713cc8cb43e7a8ac80cf5eea Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 9 Aug 2022 12:03:49 -0400 Subject: [PATCH] Ensure the node list is sorted Otherwise the node entries could come back in an arbitrary order; since this is an ordered list of dictionaries that might not be expected by the API consumers, so ensure it's always sorted. --- daemon-common/node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon-common/node.py b/daemon-common/node.py index 27dd8d92..44a5a2aa 100644 --- a/daemon-common/node.py +++ b/daemon-common/node.py @@ -236,6 +236,7 @@ def get_list( ): node_list = [] full_node_list = zkhandler.children("base.node") + full_node_list.sort() if is_fuzzy and limit: # Implicitly assume fuzzy limits