From 4109f1cc9ae381464d0525e3befb5305aefc8834 Mon Sep 17 00:00:00 2001 From: hparekh Date: Tue, 3 Nov 2015 10:00:42 +0530 Subject: [PATCH] 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 --- mistral/engine/policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/engine/policies.py b/mistral/engine/policies.py index f4ae215c7..d30571b8f 100644 --- a/mistral/engine/policies.py +++ b/mistral/engine/policies.py @@ -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):