Comparision opeartor has been changed.
While creating policy '>' operator is used, due to which in py34 exception is occurred when variable is provided from input parameter. Exception was TypeError: unorderable types: str() > int() TODO: Add more unit test to catch such scenarios. Partially-Implements: blueprint mistral-py3 Change-Id: I2c652812ae4a04cd7610f2a6684da76c582a4e32
This commit is contained in:
parent
46b00683c0
commit
4109f1cc9a
@ -77,7 +77,7 @@ def build_wait_before_policy(policies_spec):
|
|||||||
|
|
||||||
wait_before = policies_spec.get_wait_before()
|
wait_before = policies_spec.get_wait_before()
|
||||||
|
|
||||||
return WaitBeforePolicy(wait_before) if wait_before > 0 else None
|
return WaitBeforePolicy(wait_before) if wait_before != 0 else None
|
||||||
|
|
||||||
|
|
||||||
def build_wait_after_policy(policies_spec):
|
def build_wait_after_policy(policies_spec):
|
||||||
|
Loading…
Reference in New Issue
Block a user