Change nova and cinder client constructor invocation

Change-Id: I763565f9cdc5928c987cbd40e0a6c6c52fd4dec4
This commit is contained in:
eldar nugaev 2015-07-22 11:57:11 +01:00 committed by Fausto Marzi
parent 31378ab237
commit f5ad5c0453
1 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,9 @@
import logging
import time
from cinderclient.v1 import client as cclient
from glanceclient.v1 import client as gclient
from novaclient.v2 import client as nclient
from cinderclient import client as cclient
from glanceclient import client as gclient
from novaclient import client as nclient
import swiftclient
from utils import Bunch
@ -81,6 +81,7 @@ class ClientManager:
options = self.options
logging.info("[*] Creation of cinder client")
self.cinder = cclient.Client(
version="1",
username=options.user_name,
api_key=options.password,
project_id=options.tenant_name,
@ -146,6 +147,7 @@ class ClientManager:
logging.info("[*] Creation of nova client")
self.nova = nclient.Client(
version='2',
username=options.user_name,
api_key=options.password,
project_id=options.tenant_name,