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:
hparekh 2015-11-03 10:00:42 +05:30
parent 46b00683c0
commit 4109f1cc9a
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def build_wait_before_policy(policies_spec):
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):