]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat engine : DBInstance fix so nested stack is deleted
authorSteven Hardy <shardy@redhat.com>
Tue, 8 Jan 2013 18:10:22 +0000 (18:10 +0000)
committerSteven Hardy <shardy@redhat.com>
Tue, 8 Jan 2013 18:10:22 +0000 (18:10 +0000)
Currently the RDS DBInstance resource inherits from stack.Stack but it
should be stack.NestedStack, which implements handle_delete whereas
stack.Stack does not, meaning the DBInstance nested stack is never
deleted when the owning stack gets deleted.

fixes bug 1097299

Change-Id: I865611d4de9ea4c3caa43c7a11a28924602a5b0d
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/engine/resources/dbinstance.py

index 568b223ae91bc29d369ebace29a293a76d6db68f..b4258394a6b5dc8376eba1a87901808b072978c4 100644 (file)
@@ -163,7 +163,7 @@ mysql_template = r'''
 '''
 
 
-class DBInstance(stack.Stack):
+class DBInstance(stack.NestedStack):
 
     properties_schema = {
         'DBSnapshotIdentifier': {'Type': 'String',