From 7d80f9e9626d14ce2ab60e4b69e3ccd070f31e0d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 8 May 2023 11:35:45 +0100 Subject: Blacken openstack.common 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: Ifcb3c798666d74d596b8ecb3d6d507f782de7ba5 Signed-off-by: Stephen Finucane --- openstackclient/common/versions.py | 42 ++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 18 deletions(-) (limited to 'openstackclient/common/versions.py') diff --git a/openstackclient/common/versions.py b/openstackclient/common/versions.py index 3acd9f73..b7ebf02e 100644 --- a/openstackclient/common/versions.py +++ b/openstackclient/common/versions.py @@ -46,26 +46,29 @@ class ShowVersions(command.Lister): parser.add_argument( '--service', metavar='', - help=_('Show versions for a specific service. The argument should ' - 'be either an exact match to what is in the catalog or a ' - 'known official value or alias from ' - 'service-types-authority ' - '(https://service-types.openstack.org/)'), + help=_( + 'Show versions for a specific service. The argument should ' + 'be either an exact match to what is in the catalog or a ' + 'known official value or alias from ' + 'service-types-authority ' + '(https://service-types.openstack.org/)' + ), ) parser.add_argument( '--status', metavar='', - help=_("""Show versions for a specific status. Valid values are: + help=_( + """Show versions for a specific status. Valid values are: - SUPPORTED - CURRENT - DEPRECATED -- EXPERIMENTAL""") +- EXPERIMENTAL""" + ), ) return parser def take_action(self, parsed_args): - interface = parsed_args.interface if parsed_args.is_all_interfaces: interface = None @@ -74,7 +77,8 @@ class ShowVersions(command.Lister): version_data = session.get_all_version_data( interface=interface, region_name=parsed_args.region_name, - service_type=parsed_args.service) + service_type=parsed_args.service, + ) columns = [ "Region Name", @@ -97,13 +101,15 @@ class ShowVersions(command.Lister): for data in service_versions: if status and status != data['status']: continue - versions.append(( - region_name, - service_type, - data['version'], - data['status'], - data['url'], - data['min_microversion'], - data['max_microversion'], - )) + versions.append( + ( + region_name, + service_type, + data['version'], + data['status'], + data['url'], + data['min_microversion'], + data['max_microversion'], + ) + ) return (columns, versions) -- cgit v1.2.1