diff options
author | Rabi Mishra <ramishra@redhat.com> | 2019-07-02 17:19:05 +0530 |
---|---|---|
committer | Rabi Mishra <ramishra@redhat.com> | 2019-07-03 10:39:56 +0000 |
commit | 84fe2ec4f3b9d91e748d31ba09c78518a71fa9ad (patch) | |
tree | 86ad2606742016f47a76ea0f78a6f712263da8bc | |
parent | e5b6c90b4c69b83baf0d80a6cad0a2bf39c944a5 (diff) | |
download | heat-84fe2ec4f3b9d91e748d31ba09c78518a71fa9ad.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)
-rw-r--r-- | heat/engine/resources/openstack/heat/none_resource.py | 4 |
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) |