summaryrefslogtreecommitdiffstats
path: root/deploy/post/glance.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-24 14:43:04 +0800
committerSerena Feng <feng.xiaowei@zte.com.cn>2017-03-24 06:45:51 +0000
commit9b44406394c56b4d162e3feae6282777a63b5ec0 (patch)
treed3490377159970205a3a309c22158590f9286d32 /deploy/post/glance.py
parentbbef0fa1fb89a90a98e66ece5b19852bcf3f2332 (diff)
unify the way of getting openstack clients
Change-Id: If3a1d1a8b74e11c5861c016bd722b78f4cf9b475 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'deploy/post/glance.py')
-rw-r--r--deploy/post/glance.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/deploy/post/glance.py b/deploy/post/glance.py
index 4171c8a8..79831ed0 100644
--- a/deploy/post/glance.py
+++ b/deploy/post/glance.py
@@ -14,10 +14,9 @@ from deploy.common import query
import keystoneauth
-class Glance(keystoneauth.Keystoneauth):
+class Glance(keystoneauth.ClientBase):
def __init__(self, version='2', openrc=None):
- super(Glance, self).__init__(openrc)
- self.client = glanceclient.Client(version, session=self.session)
+ super(Glance, self).__init__(glanceclient.Client, version, openrc)
self.controller = self.client.images
def create(self, name, path,