Skip to content

Commit

Permalink
heat clients : Make heat-boto rollback disabled by default
Browse files Browse the repository at this point in the history
The boto library always sends the DisableRollback parameter,
defaulted to False, which is the opposite of the engine
default now, so we have to set DisableRollback to True in
the boto client wrapper

ref bug 1131303

Change-Id: I4acbba7b37f24cb1a874292ff2323ae24b630edf
  • Loading branch information
Steven Hardy committed Mar 4, 2013
1 parent 0aea942 commit d02b088
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions heat/cfn_client/boto_client.py
Expand Up @@ -39,10 +39,9 @@ def describe_stacks(self, **kwargs):
return super(BotoClient, self).describe_stacks(stack_name)

def create_stack(self, **kwargs):
disable_rollback = False
if 'DisableRollback' in kwargs:
if str(kwargs['DisableRollback']).lower() == 'true':
disable_rollback = True
disable_rollback = True
if str(kwargs.get('DisableRollback', '')).lower() == 'false':
disable_rollback = False

if 'TemplateUrl' in kwargs:
return super(BotoClient, self).create_stack(
Expand Down

0 comments on commit d02b088

Please sign in to comment.