From 419159beb9e096dd475aa33d3685bdb309a5690a Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 30 Apr 2010 22:13:14 +0200 Subject: [PATCH] order the servers by their ID in the output to maintain the ordering --- munin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munin.py b/munin.py index 4886ab4..e556a63 100755 --- a/munin.py +++ b/munin.py @@ -54,7 +54,7 @@ def get_running_instances(): if not server.online: continue runinst = server.ctl.getBootedServers() - for inst in server.mumble_set.filter( srvid__in=runinst ): + for inst in server.mumble_set.order_by("srvid").filter( srvid__in=runinst ): yield inst