heat cli : Add --disable-rollback option to heat-cfn
When rollback is implemented it will default on, like aws so this option allows stack rollback on create to be disabled blueprint stack-rollback Change-Id: I02fcaaa656219b1c65729cecdd473e0a5bd86036
This commit is contained in:
parent
76cd4260b1
commit
df6bd799da
|
@ -201,6 +201,9 @@ def stack_create(options, arguments):
|
|||
|
||||
parameters['TimeoutInMinutes'] = options.timeout
|
||||
|
||||
if options.disable_rollback:
|
||||
parameters['DisableRollback'] = 'True'
|
||||
|
||||
templ_param = get_template_param(options)
|
||||
if templ_param:
|
||||
parameters.update(templ_param)
|
||||
|
@ -495,6 +498,10 @@ 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",
|
||||
default=False, action="store_true",
|
||||
help="Disable rollback on failure")
|
||||
|
||||
|
||||
def credentials_from_env():
|
||||
return dict(username=os.getenv('OS_USERNAME'),
|
||||
|
|
|
@ -29,7 +29,7 @@ logger = logging.getLogger(__name__)
|
|||
SUPPORTED_PARAMS = ('StackName', 'TemplateBody', 'TemplateUrl',
|
||||
'NotificationARNs', 'Parameters', 'Version',
|
||||
'SignatureVersion', 'Timestamp', 'AWSAccessKeyId',
|
||||
'Signature', 'TimeoutInMinutes',
|
||||
'Signature', 'TimeoutInMinutes', 'DisableRollback',
|
||||
'LogicalResourceId', 'PhysicalResourceId', 'NextToken',
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue