summaryrefslogtreecommitdiffstats
path: root/vio/vio/pub/vim/vimapi/baseclient.py
diff options
context:
space:
mode:
authorLiang Ke <lokyse@163.com>2018-09-11 09:07:36 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-11 09:07:36 +0000
commit3b82621ed21678dd82c432e198879e8c382c366f (patch)
tree64707ec73fd5362dd15942aee4e0d9ebb0f4c43d /vio/vio/pub/vim/vimapi/baseclient.py
parent4eb918d2f4b50d3817725d45385b60c0e0c707bb (diff)
parent0c69043be9d046999319a7aa69434efdf360fa81 (diff)
Merge "Add heat driver"
Diffstat (limited to 'vio/vio/pub/vim/vimapi/baseclient.py')
-rw-r--r--vio/vio/pub/vim/vimapi/baseclient.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/vio/vio/pub/vim/vimapi/baseclient.py b/vio/vio/pub/vim/vimapi/baseclient.py
index 2511426..ca34f4c 100644
--- a/vio/vio/pub/vim/vimapi/baseclient.py
+++ b/vio/vio/pub/vim/vimapi/baseclient.py
@@ -25,6 +25,7 @@ class baseclient(object):
self._glanceclient = None
self._computeClient = None
self._cinderclient = None
+ self._heatclient = None
def identity(self, data):
'''Construct compute client based on object.
@@ -58,3 +59,8 @@ class baseclient(object):
self._cinderclient = driver_base.VimDriver().cinder(data)
return self._cinderclient
+
+ def heat(self, data):
+ if self._heatclient is None:
+ self._heatclient = driver_base.VimDriver().heat(data)
+ return self._heatclient