diff options
author | rabi <ramishra@redhat.com> | 2017-08-22 17:34:50 +0530 |
---|---|---|
committer | rabi <ramishra@redhat.com> | 2017-08-22 18:06:05 +0530 |
commit | f849b4deb277e2511cf4547fc26f1e849c987954 (patch) | |
tree | 9cb73330657227124ec3e5572a25f525f5c0999c /heat/objects | |
parent | ce6fab6ef0fdd243c3c253815bad2654e4c01e52 (diff) | |
download | heat-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.py | 2 |
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( |