summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabi Mishra <ramishra@redhat.com>2019-07-02 17:19:05 +0530
committerRabi Mishra <ramishra@redhat.com>2019-07-05 10:22:19 +0000
commite7ad8dd0f94700bc6b03a055ebf0900a21c30ff7 (patch)
tree4196a3ded5aa8cd10799489e87b92d1460b912b1
parent941619d8c5dc244ae780355415686a0838ca9913 (diff)
downloadheat-e7ad8dd0f94700bc6b03a055ebf0900a21c30ff7.tar.gz
Don't resolve properties for OS::Heat::None resource
We don't store resource_properties_data for OS::Heat::None. There is no point trying to resolve the properties for old resource which would fail at times. Change-Id: I4cf72ae6d11ffbedc20adedfe7b6d2a1d47e23ee Task: 35661 Closes-Bug: #1834881 Depends-On: https://review.opendev.org/668144 (cherry picked from commit 7066bccc538574de5424ff0b79ce1e2feeb6e2ad) (cherry picked from commit 84fe2ec4f3b9d91e748d31ba09c78518a71fa9ad)
-rw-r--r--heat/engine/resources/openstack/heat/none_resource.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/heat/engine/resources/openstack/heat/none_resource.py b/heat/engine/resources/openstack/heat/none_resource.py
index 1c97dea77..8932344eb 100644
--- a/heat/engine/resources/openstack/heat/none_resource.py
+++ b/heat/engine/resources/openstack/heat/none_resource.py
@@ -38,6 +38,10 @@ class NoneResource(resource.Resource):
prev_resource, check_init_complete=True):
return False
+ def frozen_definition(self):
+ return self.t.freeze(
+ properties=properties.Properties(schema={}, data={}))
+
def reparse(self, client_resolve=True):
self.properties = properties.Properties(schema={}, data={})
self.translate_properties(self.properties, client_resolve)