|
|
@@ -17,7 +17,6 @@ from novaclient import client as nova_client
|
|
|
from novaclient import shell as nova_shell
|
|
|
|
|
|
from openstack import connection
|
|
|
-from openstack import profile
|
|
|
|
|
|
from swiftclient import client as swift_client
|
|
|
|
|
|
@@ -125,11 +124,8 @@ class OpenStackCloudProvider(BaseCloudProvider):
|
|
|
return self._cached_keystone_session
|
|
|
|
|
|
def _connect_openstack(self):
|
|
|
- prof = profile.Profile()
|
|
|
- prof.set_region(profile.Profile.ALL, self.region_name)
|
|
|
-
|
|
|
return connection.Connection(
|
|
|
- profile=prof,
|
|
|
+ region_name=self.region_name,
|
|
|
user_agent='cloudbridge',
|
|
|
auth_url=self.auth_url,
|
|
|
project_name=self.project_name,
|