Commit f66bc34b authored by Łukasz Nowak's avatar Łukasz Nowak

promise/plugin: check_file_state shall fail fast

This promise relates to resources local on the partition, which are files, and
they shall be available fast, thus make it failing immediately in case of
failure.
parent d4d00856
...@@ -53,4 +53,4 @@ class RunPromise(GenericPromise): ...@@ -53,4 +53,4 @@ class RunPromise(GenericPromise):
self.logger.info("OK %r state %r" % (filename, state)) self.logger.info("OK %r state %r" % (filename, state))
def anomaly(self): def anomaly(self):
return self._anomaly(result_count=3, failure_amount=3) return self._anomaly(result_count=1, failure_amount=1)
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