Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change --disable-rollback option to --enable-rollback

Due to bug 1131303, the engine default is changing to disable
rollback by default, so we instead need an option to allow
users to enable this functionality

fixes bug 1144630

Change-Id: I509e616e20a3e4750ffcefe6e72c52e5f60445bc
  • Loading branch information...
commit b6ff6d2eecdaa6840ecadd8bb30a9de1d3dad92b 1 parent ec0a708
@hardys hardys authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 heatclient/v1/shell.py
View
10 heatclient/v1/shell.py
@@ -51,8 +51,8 @@ def _set_template_fields(hc, args, fields):
@utils.arg('-c', '--create-timeout', metavar='<TIMEOUT>',
default=60, type=int,
help='Stack creation timeout in minutes. Default: 60')
-@utils.arg('-D', '--disable-rollback', default=False, action="store_true",
- help='Disable rollback on create/update failure')
+@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
+ help='Enable rollback on create/update failure')
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
help='Parameter values used to create the stack.')
@utils.arg('name', metavar='<STACK_NAME>',
@@ -71,8 +71,8 @@ def do_create(hc, args):
@utils.arg('-c', '--create-timeout', metavar='<TIMEOUT>',
default=60, type=int,
help='Stack creation timeout in minutes. Default: 60')
-@utils.arg('-D', '--disable-rollback', default=False, action="store_true",
- help='Disable rollback on create/update failure')
+@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
+ help='Enable rollback on create/update failure')
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
help='Parameter values used to create the stack.')
@utils.arg('name', metavar='<STACK_NAME>',
@@ -81,7 +81,7 @@ def do_stack_create(hc, args):
'''Create the stack'''
fields = {'stack_name': args.name,
'timeout_mins': args.create_timeout,
- 'disable_rollback': args.disable_rollback,
+ 'disable_rollback': not(args.enable_rollback),
'parameters': utils.format_parameters(args.parameters)}
_set_template_fields(hc, args, fields)
Please sign in to comment.
Something went wrong with that request. Please try again.