Skip to content

Commit 7c603e4

Browse files
author
Stuart McLaren
committed
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
1 parent 5b36898 commit 7c603e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openstackclient/network/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def make_client(instance):
3636
prof = profile.Profile()
3737
prof.set_region(API_NAME, instance._region_name)
3838
prof.set_version(API_NAME, instance._api_version[API_NAME])
39+
prof.set_interface(API_NAME, instance._interface)
3940
conn = connection.Connection(authenticator=instance.session.auth,
4041
verify=instance.session.verify,
4142
cert=instance.session.cert,

0 commit comments

Comments
 (0)