Skip to content

Commit

Permalink
Handle bool values better in cfn2py [cloudtoolsGH-45]
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Jan 23, 2014
1 parent 2a2b4b1 commit 83e2227
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/cfn2py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 83e2227

Please sign in to comment.