From 83e222706d9e18b2a289844b15c0cd076e92fefa Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Thu, 23 Jan 2014 08:07:14 -0800 Subject: [PATCH] Handle bool values better in cfn2py [GH-45] --- scripts/cfn2py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/cfn2py b/scripts/cfn2py index 3d2b7101f..2adb2a234 100755 --- a/scripts/cfn2py +++ b/scripts/cfn2py @@ -169,6 +169,8 @@ def output_value(v): """Output a value which may be a string or a set of function calls.""" if isinstance(v, basestring): return '"%s"' % (v,) + elif isinstance(v, bool): + return '"%s"' % (str(v).lower(),) elif isinstance(v, list): out = [] for item in v: