Merge "StackAction parameter to distinguish top-level create vs. update"

This commit is contained in:
Jenkins 2016-04-15 10:19:04 +00:00 committed by Gerrit Code Review
commit b82ae4cc8a
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class UpdateManagerTest(base.TestCase):
'stack_id': 'stack_id',
'template': 'template body',
'files': {},
'parameters': {'UpdateIdentifier': 123},
'parameters': {'UpdateIdentifier': 123, 'StackAction': 'UPDATE'},
'environment': {
'resource_registry': {
'resources': {

View File

@ -49,7 +49,7 @@ class PackageUpdateManager(_stack_update.StackUpdateManager):
# time rounded to seconds
timestamp = int(time.time())
stack_params = {'UpdateIdentifier': timestamp}
stack_params = {'UpdateIdentifier': timestamp, 'StackAction': 'UPDATE'}
tpl_files, template = template_utils.get_template_contents(
template_file=os.path.join(self.tht_dir, constants.TEMPLATE_NAME))