Skip to content
Snippets Groups Projects
Commit 31613714 authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed db status 500 error

parent dbe16b57
No related branches found
No related tags found
No related merge requests found
......@@ -629,8 +629,11 @@ def dbstatus():
status = {}
variables = {}
for host in config.get('MYSQL_DBSTATUS_HOSTS', [])+[config.get('MYSQL_HOST', None)]:
try:
for _host in show('SHOW VARIABLES LIKE "wsrep_cluster_address"', host=host)['wsrep_cluster_address'][len('gcomm://'):].split(','):
hosts.add(_host)
except:
pass
for host in sorted(list(hosts)):
try:
status[host] = show('SHOW GLOBAL STATUS LIKE "wsrep%"', host=host)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment