Merge "When removing an empty res also remove refs to it in depends_on"
This commit is contained in:
commit
68ea2742cc
@ -390,6 +390,11 @@ class TranslateNodeTemplates(object):
|
||||
for resource in to_remove:
|
||||
self.hot_resources.remove(resource)
|
||||
|
||||
for resource in self.hot_resources:
|
||||
for removed_resource in to_remove:
|
||||
if removed_resource in resource.depends_on:
|
||||
resource.depends_on.remove(removed_resource)
|
||||
|
||||
return self.hot_resources
|
||||
|
||||
def translate_param_value(self, param_value, resource):
|
||||
|
@ -16,8 +16,6 @@ resources:
|
||||
get_resource: myapp_configure_config
|
||||
server:
|
||||
get_resource: server
|
||||
depends_on:
|
||||
- mysql_database
|
||||
server:
|
||||
type: OS::Nova::Server
|
||||
properties:
|
||||
|
Loading…
Reference in New Issue
Block a user