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:
parent
ab7c7df0d9
commit
63f926d8a0
@ -62,6 +62,7 @@ class UpdateManagerTest(base.TestCase):
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
'parameter_defaults': {
|
'parameter_defaults': {
|
||||||
|
'DeployIdentifier': 123,
|
||||||
'UpdateIdentifier': 123,
|
'UpdateIdentifier': 123,
|
||||||
'StackAction': 'UPDATE'
|
'StackAction': 'UPDATE'
|
||||||
},
|
},
|
||||||
|
@ -63,7 +63,11 @@ 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, 'StackAction': 'UPDATE'}
|
stack_params = {
|
||||||
|
'DeployIdentifier': timestamp,
|
||||||
|
'UpdateIdentifier': timestamp,
|
||||||
|
'StackAction': 'UPDATE'
|
||||||
|
}
|
||||||
template_utils.deep_update(env, {'parameter_defaults': stack_params})
|
template_utils.deep_update(env, {'parameter_defaults': stack_params})
|
||||||
|
|
||||||
self.stack_fields['environment'] = env
|
self.stack_fields['environment'] = env
|
||||||
|
Loading…
Reference in New Issue
Block a user