Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: run.py

Issue 29366987: Issue 3574 - Update run.py to recognize adblockplus::host records (Closed)
Patch Set: Created Dec. 7, 2016, 10:20 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: run.py
===================================================================
--- a/run.py
+++ b/run.py
@@ -76,7 +76,7 @@
else:
sys.exit('Please either specify a --remote host or use --local')
- servers = config.get('servers', {})
+ servers = config.get('adblockplus::hosts', {})
return servers
@@ -92,11 +92,11 @@
else:
for name in options.hosts:
chunk = [
- value.get('dns', key) for (key, value) in valid_hosts.items()
+ value.get('fqdn', key) for (key, value) in valid_hosts.items()
if name == key
or name == '*'
- or name == value.get('dns', None)
+ or name == value.get('fqdn', None)
or name in value.get('groups', ())
]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld