The runner should be stored in the dictionary, not a value of True. #12

Merged
merged 1 commit into from Apr 3, 2012

Projects

None yet

2 participants

Contributor

I was trying to run an HTTP monitor and was getting the following error:

Traceback (most recent call last):
  File "monitor.py", line 33, in <module>
    run_monitor(sys.argv[1])
  File "monitor.py", line 22, in run_monitor
    Print("%s experienced 5 errors within 5 seconds")
  File "/Users/mattwright/Workspace/Change-By-Us/scripts/daemonwatch.py", line 1278, in run
    runner = self.runnerForRule(rule, service, self.iteration)
  File "/Users/mattwright/Workspace/Change-By-Us/scripts/daemonwatch.py", line 1248, in runnerForRule
    if iteration - runner.iteration < 5:
AttributeError: 'bool' object has no attribute 'iteration'

This fixed the problem

@sebastien sebastien merged commit 44eb026 into sebastien:master Apr 3, 2012
Owner

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment