summaryrefslogtreecommitdiff
path: root/heat/engine/resources/openstack/manila/share.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/engine/resources/openstack/manila/share.py')
-rw-r--r--heat/engine/resources/openstack/manila/share.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/heat/engine/resources/openstack/manila/share.py b/heat/engine/resources/openstack/manila/share.py
index 84fb5544a..433da56ce 100644
--- a/heat/engine/resources/openstack/manila/share.py
+++ b/heat/engine/resources/openstack/manila/share.py
@@ -195,6 +195,8 @@ class ManilaShare(resource.Resource):
return self.client().shares.get(self.resource_id)
def _resolve_attribute(self, name):
+ if self.resource_id is None:
+ return
share = self._request_share()
return six.text_type(getattr(share, name))