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:
Jimmy McCrory 2018-02-03 12:45:31 -08:00
parent d2b9369be5
commit f613a07be9

View File

@ -22,7 +22,6 @@ import datetime
import logging import logging
import os import os
from openstack import connection from openstack import connection
from openstack import profile
import signal import signal
import sys import sys
import time import time
@ -95,16 +94,12 @@ class ServiceTest(object):
auth_url = os.environ['OS_AUTH_URL'] auth_url = os.environ['OS_AUTH_URL']
password = os.environ['OS_PASSWORD'] password = os.environ['OS_PASSWORD']
prof = profile.Profile()
prof.set_interface(profile.Profile.ALL, 'admin')
conn = connection.Connection(auth_url=auth_url, conn = connection.Connection(auth_url=auth_url,
username='admin', username='admin',
password=password, password=password,
project_name='admin', project_name='admin',
user_domain_id='default', user_domain_id='default',
project_domain_id='default', project_domain_id='default')
profile=prof)
self.conn = conn self.conn = conn
return conn return conn