diff options
author | Steven Hardy <shardy@redhat.com> | 2013-03-04 15:27:57 +0000 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2013-03-04 20:48:54 +0000 |
commit | 0aea9429bf122eb4cde1b749b129ecfe6ca8f63c (patch) | |
tree | 8e8b12980c4c4173e1f18f54b344853ce7c8af02 /bin | |
parent | 7f9d593c98452a2c8f23d82f8bb504ae4c3a365c (diff) | |
download | heat-0aea9429bf122eb4cde1b749b129ecfe6ca8f63c.tar.gz |
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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/heat-cfn | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/heat-cfn b/bin/heat-cfn index c4ec11e4e..0f6512c9b 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(): |