Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/180104
Change subject: Read whitelist/greylist from files and compare to db
......................................................................
Read whitelist/greylist from files and compare to db
Change-Id: I616ea7bb4b4d61bf95184b9e34ccfcb929dcc0b1
---
M auditor/run.py
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/software/labsdb-auditor
refs/changes/04/180104/1
diff --git a/auditor/run.py b/auditor/run.py
index 8a4758a..758eda9 100644
--- a/auditor/run.py
+++ b/auditor/run.py
@@ -54,6 +54,14 @@
tables[tablename] = table
db.add_table(table)
+expected_tables = {}
+for configfile in args.expectedconfig:
+ configdata = yaml.load(open(configfile))
+ for tablename, tabledict in configdata.items():
+ expected_tables[tablename] = Table.from_dict(tablename, tabledict)
+
+print expected_tables
+
# Write out db lists
yaml.dump({
'not-in-db': list(whitelist_dbs - set(dbs.keys())),
--
To view, visit https://gerrit.wikimedia.org/r/180104
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I616ea7bb4b4d61bf95184b9e34ccfcb929dcc0b1
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