From 0aea9429bf122eb4cde1b749b129ecfe6ca8f63c Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Mon, 4 Mar 2013 15:27:57 +0000 Subject: [PATCH] heat clients : Change --disable-rollback to --enable-rollback Since the engine default is now rollback disabled, flip this switch so the user can opt-in to rollback functionality via the --enable-rollback cli option to heat-cfn/heat-boto ref bug 1131303 Change-Id: I3965de9a2beb510d5623d0c7cd8ff3aea9d4364a --- bin/heat-cfn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/heat-cfn b/bin/heat-cfn index c4ec11e4..0f6512c9 100755 --- a/bin/heat-cfn +++ b/bin/heat-cfn @@ -201,8 +201,8 @@ def stack_create(options, arguments): parameters['TimeoutInMinutes'] = options.timeout - if options.disable_rollback: - parameters['DisableRollback'] = 'True' + if options.enable_rollback: + parameters['DisableRollback'] = 'False' templ_param = get_template_param(options) if templ_param: @@ -498,9 +498,9 @@ def create_options(parser): parser.add_option('-P', '--parameters', metavar="parameters", default=None, help="Parameter values used to create the stack.") - parser.add_option('-D', '--disable-rollback', dest="disable_rollback", + parser.add_option('-r', '--enable-rollback', dest="enable_rollback", default=False, action="store_true", - help="Disable rollback on failure") + help="Enable rollback on failure") def credentials_from_env(): -- 2.45.2