summaryrefslogtreecommitdiff
path: root/heat/objects
diff options
context:
space:
mode:
authorrabi <ramishra@redhat.com>2017-08-22 17:34:50 +0530
committerrabi <ramishra@redhat.com>2017-08-22 18:06:05 +0530
commitf849b4deb277e2511cf4547fc26f1e849c987954 (patch)
tree9cb73330657227124ec3e5572a25f525f5c0999c /heat/objects
parentce6fab6ef0fdd243c3c253815bad2654e4c01e52 (diff)
downloadheat-f849b4deb277e2511cf4547fc26f1e849c987954.tar.gz
Set resource._properties_data=None when loading from db
In I462ce7161497306483286b78416f9037ac80d6fa we changed to use the frozen_defintion properties for delete. However, When deleting a resource from backup stack, where the resource is in INIT_COMPLETE, setting the _stored_properties_data(_properties_data) to {} when loading the resource from the db, results in error, when resources access properties in handle_delete. Change-Id: If76372c7ef9aee258efb1bfbc724d8637bc6a32c Closes-Bug: #1709682
Diffstat (limited to 'heat/objects')
-rw-r--r--heat/objects/resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/objects/resource.py b/heat/objects/resource.py
index 102aa45c7..0b9bb4590 100644
--- a/heat/objects/resource.py
+++ b/heat/objects/resource.py
@@ -136,7 +136,7 @@ class Resource(
else:
resource._properties_data = db_resource['properties_data']
else:
- resource._properties_data = {}
+ resource._properties_data = None
if db_resource['attr_data'] is not None:
resource._attr_data = rpd.ResourcePropertiesData._from_db_object(