From 608898c24cbad3105c2cef7b034531aa63dcf267 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Wed, 3 May 2017 11:32:36 +0200 Subject: [PATCH] Sort db hosts --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 40630db..3cf8f28 100644 --- a/server.py +++ b/server.py @@ -631,7 +631,7 @@ def dbstatus(): for host in config.get('MYSQL_DBSTATUS_HOSTS', [])+[config.get('MYSQL_HOST', None)]: for _host in show('SHOW VARIABLES LIKE "wsrep_cluster_address"', host=host)['wsrep_cluster_address'][len('gcomm://'):].split(','): hosts.add(_host) - for host in hosts: + for host in sorted(list(hosts)): try: status[host] = show('SHOW GLOBAL STATUS LIKE "wsrep%"', host=host) variables[host] = show('SHOW GLOBAL VARIABLES LIKE "wsrep%"', host=host) -- GitLab