summaryrefslogtreecommitdiff
path: root/openstackclient/common/module.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2023-05-08 11:35:45 +0100
committerStephen Finucane <sfinucan@redhat.com>2023-05-10 10:51:30 +0100
commit7d80f9e9626d14ce2ab60e4b69e3ccd070f31e0d (patch)
tree6498649965c44537669d58b2167b56612cd1490b /openstackclient/common/module.py
parent7ca43885c26d9dd7903e7015c0a31f3486730eea (diff)
downloadpython-openstackclient-7d80f9e9626d14ce2ab60e4b69e3ccd070f31e0d.tar.gz
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 <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/common/module.py')
-rw-r--r--openstackclient/common/module.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/openstackclient/common/module.py b/openstackclient/common/module.py
index f55fdce0..486a27cc 100644
--- a/openstackclient/common/module.py
+++ b/openstackclient/common/module.py
@@ -33,9 +33,11 @@ class ListCommand(command.Lister):
parser.add_argument(
'--group',
metavar='<group-keyword>',
- help=_('Show commands filtered by a command group, for example: '
- 'identity, volume, compute, image, network and '
- 'other keywords'),
+ help=_(
+ 'Show commands filtered by a command group, for example: '
+ 'identity, volume, compute, image, network and '
+ 'other keywords'
+ ),
)
return parser
@@ -54,7 +56,6 @@ class ListCommand(command.Lister):
command_names = sorted(command_names)
if command_names != []:
-
# TODO(bapalm): Fix this when cliff properly supports
# handling the detection rather than using the hard-code below.
if parsed_args.formatter == 'table':
@@ -81,7 +82,6 @@ class ListModule(command.ShowOne):
return parser
def take_action(self, parsed_args):
-
data = {}
# Get module versions
mods = sys.modules
@@ -95,9 +95,12 @@ class ListModule(command.ShowOne):
# show for the default (not --all) invocation.
# It should be just the things we actually care
# about like client and plugin modules...
- if (parsed_args.all or
- # Handle xxxclient and openstacksdk
- (k.endswith('client') or k == 'openstack')):
+ if (
+ parsed_args.all
+ or
+ # Handle xxxclient and openstacksdk
+ (k.endswith('client') or k == 'openstack')
+ ):
try:
# NOTE(RuiChen): openstacksdk bug/1588823 exist,
# no good way to add __version__ for