diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2023-05-08 10:54:22 +0100 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2023-05-10 10:51:30 +0100 |
| commit | 35ba1d8f1304d3255b96b704d524666ec5b6fea2 (patch) | |
| tree | 6d4ab560d4086e8b1a1f935b8531d7e85550cc36 /openstackclient/volume/client.py | |
| parent | 28ffa2bf9f017212da5eb84b0cf74df62e2f5eb9 (diff) | |
| download | python-openstackclient-35ba1d8f1304d3255b96b704d524666ec5b6fea2.tar.gz | |
Blacken openstackclient.volume
Black used with the '-l 79 -S' flags.
A future change will ignore this commit in git-blame history by adding a
'git-blame-ignore-revs' file.
Change-Id: Ic318617c67ab7ce6527f9016b759a1d4b0b80802
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/volume/client.py')
| -rw-r--r-- | openstackclient/volume/client.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/openstackclient/volume/client.py b/openstackclient/volume/client.py index 0712fa7b..4615184e 100644 --- a/openstackclient/volume/client.py +++ b/openstackclient/volume/client.py @@ -60,6 +60,7 @@ def make_client(instance): else: version = instance._api_version[API_NAME] from cinderclient import api_versions + # convert to APIVersion object version = api_versions.get_api_version(version) @@ -69,9 +70,7 @@ def make_client(instance): volume_snapshots.Snapshot.NAME_ATTR = 'display_name' volume_client = utils.get_client_class( - API_NAME, - version.ver_major, - API_VERSIONS + API_NAME, version.ver_major, API_VERSIONS ) LOG.debug('Instantiating volume client: %s', volume_client) @@ -84,7 +83,8 @@ def make_client(instance): kwargs = utils.build_kwargs_dict('endpoint_type', instance.interface) endpoint_override = instance.sdk_connection.config.get_endpoint( - 'block-storage') + 'block-storage' + ) client = volume_client( session=instance.session, @@ -105,8 +105,10 @@ def build_option_parser(parser): '--os-volume-api-version', metavar='<volume-api-version>', default=utils.env('OS_VOLUME_API_VERSION'), - help=_('Volume API version, default=%s ' - '(Env: OS_VOLUME_API_VERSION)') % DEFAULT_API_VERSION + help=_( + 'Volume API version, default=%s ' '(Env: OS_VOLUME_API_VERSION)' + ) + % DEFAULT_API_VERSION, ) return parser |
