Commit 6a8f4002 authored by Łukasz Nowak's avatar Łukasz Nowak

promise: Treat one failure as bad state by default

parent 2d1bb89d
......@@ -25,7 +25,7 @@ class RunPromise(GenericPromise):
# Set frequency compatible to default surykatka interval - 2 minutes
self.setPeriodicity(float(self.getConfig('frequency', 2)))
self.failure_amount = int(
self.getConfig('failure-amount', self.getConfig('failure_amount', 3)))
self.getConfig('failure-amount', self.getConfig('failure_amount', 1)))
self.result_count = self.failure_amount
self.error_list = []
self.info_list = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment