give noop myops xmlrpc call a extra parameter to allow it to work with the
[monitor.git] / policy.py
index f9605ae..84bdb44 100755 (executable)
--- a/policy.py
+++ b/policy.py
@@ -139,6 +139,8 @@ def main(hostnames, sitenames):
                if siteblack and not siteblack.expired():
                        print "skipping %s due to blacklist.  will expire %s" % (site, siteblack.willExpire() )
                        skip_due_to_blacklist=True
+                       sitehist.clearPenalty()
+                       sitehist.applyPenalty()
                        continue
 
                # TODO: make query only return records within a certin time range,