Merge "StackAction parameter to distinguish top-level create vs. update"
This commit is contained in:
commit
b82ae4cc8a
|
@ -48,7 +48,7 @@ class UpdateManagerTest(base.TestCase):
|
||||||
'stack_id': 'stack_id',
|
'stack_id': 'stack_id',
|
||||||
'template': 'template body',
|
'template': 'template body',
|
||||||
'files': {},
|
'files': {},
|
||||||
'parameters': {'UpdateIdentifier': 123},
|
'parameters': {'UpdateIdentifier': 123, 'StackAction': 'UPDATE'},
|
||||||
'environment': {
|
'environment': {
|
||||||
'resource_registry': {
|
'resource_registry': {
|
||||||
'resources': {
|
'resources': {
|
||||||
|
|
|
@ -49,7 +49,7 @@ class PackageUpdateManager(_stack_update.StackUpdateManager):
|
||||||
# time rounded to seconds
|
# time rounded to seconds
|
||||||
timestamp = int(time.time())
|
timestamp = int(time.time())
|
||||||
|
|
||||||
stack_params = {'UpdateIdentifier': timestamp}
|
stack_params = {'UpdateIdentifier': timestamp, 'StackAction': 'UPDATE'}
|
||||||
|
|
||||||
tpl_files, template = template_utils.get_template_contents(
|
tpl_files, template = template_utils.get_template_contents(
|
||||||
template_file=os.path.join(self.tht_dir, constants.TEMPLATE_NAME))
|
template_file=os.path.join(self.tht_dir, constants.TEMPLATE_NAME))
|
||||||
|
|
Loading…
Reference in New Issue