Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/185848
Change subject: Support specifying portnames with hostnames
......................................................................
Support specifying portnames with hostnames
Change-Id: If9e1cfaccdeb020a99a6f84cae8db34d706986ac
---
M labsdb/auditor/runner.py
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/software/labsdb-auditor
refs/changes/48/185848/1
diff --git a/labsdb/auditor/runner.py b/labsdb/auditor/runner.py
index f80bb06..40db9bc 100644
--- a/labsdb/auditor/runner.py
+++ b/labsdb/auditor/runner.py
@@ -41,6 +41,10 @@
def run(self):
all_reports = []
for host in self.config['hosts']:
+ if ':' in host:
+ hostname, port = host.split(':')
+ else:
+ hostname, port = host, 3306
logging.info('Generating reports for host %s', host)
conn = MySQLdb.connect(host=host, read_default_file='~/.my.cnf')
--
To view, visit https://gerrit.wikimedia.org/r/185848
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If9e1cfaccdeb020a99a6f84cae8db34d706986ac
Gerrit-PatchSet: 1
Gerrit-Project: operations/software/labsdb-auditor
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits