Consider interface and region options with OSC

The --os-interface/OS_INTERFACE and --os-region-name/OS_REGION_NAME
options were considered by cloudkitty CLI but ignored when using the OSC
integration.

Change-Id: I36dc3616fba59c9b2e77da75abe0f76db7ddb7e4
This commit is contained in:
Matthias Bastian 2018-09-06 12:35:42 +02:00
parent 214083c695
commit 81cdcba4f3
1 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,12 @@ def make_client(instance):
version,
API_VERSIONS)
instance.setup_auth()
return ck_client(session=instance.session)
adapter_options = dict(
interface=instance.interface,
region_name=instance.region_name,
)
return ck_client(session=instance.session,
adapter_options=adapter_options)
def build_option_parser(parser):