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

Unified Diff: kick.py

Issue 10635006: Don't validate hosts if no valid hosts are found (Closed)
Patch Set: Created May 22, 2013, 9:48 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: kick.py
===================================================================
--- a/kick.py
+++ b/kick.py
@@ -104,6 +104,10 @@
return processNode(monitoringConfig)
def resolveHostList(hosts, validHosts, validGroups):
+ if not validHosts:
+ print "Warning: No valid hosts found, not validating"
+ return hosts
+
result = set()
for param in hosts:
if param in validGroups:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld