There was an error while loading. Please reload this page.
2 parents a7be016 + 8c6b5a0 commit c9cfd56Copy full SHA for c9cfd56
1 file changed
openstackclient/network/client.py
@@ -14,6 +14,7 @@
14
import logging
15
16
from openstack import connection
17
+from openstack import profile
18
19
from openstackclient.common import utils
20
@@ -31,8 +32,11 @@
31
32
33
def make_client(instance):
34
"""Returns a network proxy"""
35
+ prof = profile.Profile()
36
+ prof.set_region(API_NAME, instance._region_name)
37
+ prof.set_version(API_NAME, instance._api_version[API_NAME])
38
conn = connection.Connection(authenticator=instance.session.auth,
- verify=instance.session.verify)
39
+ verify=instance.session.verify, profile=prof)
40
LOG.debug('Connection: %s', conn)
41
LOG.debug('Network client initialized using OpenStack SDK: %s',
42
conn.network)
0 commit comments