Commit 07cb3561 authored by Łukasz Nowak's avatar Łukasz Nowak

promise/plugin: check_file_state configurability fix

Switch to - separated variables, as expected in the profiles.
parent 31ad3b84
...@@ -10,8 +10,8 @@ class RunPromise(GenericPromise): ...@@ -10,8 +10,8 @@ class RunPromise(GenericPromise):
super(RunPromise, self).__init__(config) super(RunPromise, self).__init__(config)
# SR can set custom periodicity # SR can set custom periodicity
self.setPeriodicity(float(self.getConfig('frequency', 2))) self.setPeriodicity(float(self.getConfig('frequency', 2)))
self.result_count = int(self.getConfig('result_count', '1')) self.result_count = int(self.getConfig('result-count', '1'))
self.failure_amount = int(self.getConfig('failure_amount', '1')) self.failure_amount = int(self.getConfig('failure-amount', '1'))
def sense(self): def sense(self):
""" """
......
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