Remove use of deprecated profile parameter
The use of the profile parameter in openstacksdk's connection object has been deprecated and is currently causing upgrade testing to fail. Change-Id: If2c0ae577df3e174773b045b7c9efdd285ee1a6d
This commit is contained in:
parent
d2b9369be5
commit
f613a07be9
@ -22,7 +22,6 @@ import datetime
|
||||
import logging
|
||||
import os
|
||||
from openstack import connection
|
||||
from openstack import profile
|
||||
import signal
|
||||
import sys
|
||||
import time
|
||||
@ -95,16 +94,12 @@ class ServiceTest(object):
|
||||
auth_url = os.environ['OS_AUTH_URL']
|
||||
password = os.environ['OS_PASSWORD']
|
||||
|
||||
prof = profile.Profile()
|
||||
prof.set_interface(profile.Profile.ALL, 'admin')
|
||||
|
||||
conn = connection.Connection(auth_url=auth_url,
|
||||
username='admin',
|
||||
password=password,
|
||||
project_name='admin',
|
||||
user_domain_id='default',
|
||||
project_domain_id='default',
|
||||
profile=prof)
|
||||
project_domain_id='default')
|
||||
self.conn = conn
|
||||
|
||||
return conn
|
||||
|
Loading…
Reference in New Issue
Block a user