diff options
| author | Stuart McLaren <stuart.mclaren@hp.com> | 2016-06-14 11:16:12 +0000 |
|---|---|---|
| committer | Stuart McLaren <stuart.mclaren@hp.com> | 2016-06-14 11:20:16 +0000 |
| commit | 7c603e4a67c3d44367afbf2f2f6811d2436295e0 (patch) | |
| tree | 0c1ecaf854d4adb9ccb63843ff527ac994e6b3af /openstackclient/network/client.py | |
| parent | 5b36898b2b9777cb1d343834347429996d1bf984 (diff) | |
| download | python-openstackclient-7c603e4a67c3d44367afbf2f2f6811d2436295e0.tar.gz | |
Ensure endpoint type is used for network commands
Currently OS_ENDPOINT_TYPE and --os-interface are being ignored for
network commands. This means the public URL is always used.
Make sure that these are picked up correctly so we hit the correct
endpoint (internal/admin/etc.) for commands such as:
$ openstack --os-interface internal network list
Change-Id: Iac05204e3056e386d84d3644b5da1a2bb322bb0a
Closes-bug: 1592368
Diffstat (limited to 'openstackclient/network/client.py')
| -rw-r--r-- | openstackclient/network/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/network/client.py b/openstackclient/network/client.py index c81b7d87..d12987dd 100644 --- a/openstackclient/network/client.py +++ b/openstackclient/network/client.py @@ -36,6 +36,7 @@ def make_client(instance): prof = profile.Profile() prof.set_region(API_NAME, instance._region_name) prof.set_version(API_NAME, instance._api_version[API_NAME]) + prof.set_interface(API_NAME, instance._interface) conn = connection.Connection(authenticator=instance.session.auth, verify=instance.session.verify, cert=instance.session.cert, |
