Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
only transforming templatebody if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthmanT committed Jun 26, 2017
1 parent 081de58 commit 018f835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudify_boto3/cloudformation/resources/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def create(ctx, iface, resource_config, **_):
utils.update_resource_id(ctx.instance, stack_name)

template_body = params.get(TEMPLATEBODY, {})
if not isinstance(template_body, basestring):
if template_body and \
not isinstance(template_body, basestring):
params[TEMPLATEBODY] = json.dumps(template_body)

# Actually create the resource
Expand Down

0 comments on commit 018f835

Please sign in to comment.