[stable queens/pike] Use server_not_blacklisted condition
If the 'actions' is set to [] for UpdateDeployment, doing get_attr would throw an error, as the deployment are not created in heat and resource_id would be None. Though this should be fixed in heat, it would be good to get attributes from UpdateDeployment conditionally. This minor update code has been removed since stable/rocky with change I6c5eafe76eb53bc38d100a9ba132dd8fe6dd2d5f. Change-Id: I86fc82e604fbdee2881c4ef0ad6602da412a7ee6 Closes-Bug: #1830837
This commit is contained in:
parent
185fddf873
commit
2c4004d7ac
|
@ -508,7 +508,11 @@ resources:
|
|||
config: {get_resource: {{server_resource_name}}Config}
|
||||
server: {get_resource: {{server_resource_name}}}
|
||||
input_values:
|
||||
enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
|
||||
enable_package_upgrade:
|
||||
if:
|
||||
- server_not_blacklisted
|
||||
- {get_attr: [UpdateDeployment, update_managed_packages]}
|
||||
- false
|
||||
actions:
|
||||
if:
|
||||
- server_not_blacklisted
|
||||
|
|
Loading…
Reference in New Issue