Refresh DeployIdentifier as well on update

The package update was not refreshing the DeployIdentifier, so puppet
was never actually running. This adds the DeployIdentifier to the
heat update call.

Change-Id: I102c935e618e822c41e1201cdbb8e243ff8421af
Depends-On: I1be83f88be1959885c980ab4f428477d412751f7
Closes-Bug: #1522943
This commit is contained in:
Brad P. Crochet 2016-10-14 09:38:19 -04:00
parent ab7c7df0d9
commit 63f926d8a0
2 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,7 @@ class UpdateManagerTest(base.TestCase):
}
},
'parameter_defaults': {
'DeployIdentifier': 123,
'UpdateIdentifier': 123,
'StackAction': 'UPDATE'
},

View File

@ -63,7 +63,11 @@ class PackageUpdateManager(_stack_update.StackUpdateManager):
# time rounded to seconds
timestamp = int(time.time())
stack_params = {'UpdateIdentifier': timestamp, 'StackAction': 'UPDATE'}
stack_params = {
'DeployIdentifier': timestamp,
'UpdateIdentifier': timestamp,
'StackAction': 'UPDATE'
}
template_utils.deep_update(env, {'parameter_defaults': stack_params})
self.stack_fields['environment'] = env