From 9a0ee86fc62372b3c4a99b705981fe653bdaa088 Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Mon, 23 Apr 2012 15:10:33 +0200 Subject: [PATCH] Fix `to_boolean` in cfn_helper The lowercase conversion and striping whitespace from strings was being ignored. Signed-off-by: Tomas Sedovic --- heat/cfntools/cfn_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/cfntools/cfn_helper.py b/heat/cfntools/cfn_helper.py index fef28d5e..b9b62624 100644 --- a/heat/cfntools/cfn_helper.py +++ b/heat/cfntools/cfn_helper.py @@ -41,7 +41,7 @@ import sys def to_boolean(b): val = b.lower().strip() if isinstance(b, basestring) else b - return b in [True, 'true', 'yes', '1', 1] + return val in [True, 'true', 'yes', '1', 1] class HupConfig(object): -- 2.45.2