summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2/volume_backend.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2023-05-08 10:54:22 +0100
committerStephen Finucane <sfinucan@redhat.com>2023-05-10 10:51:30 +0100
commit35ba1d8f1304d3255b96b704d524666ec5b6fea2 (patch)
tree6d4ab560d4086e8b1a1f935b8531d7e85550cc36 /openstackclient/volume/v2/volume_backend.py
parent28ffa2bf9f017212da5eb84b0cf74df62e2f5eb9 (diff)
downloadpython-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/v2/volume_backend.py')
-rw-r--r--openstackclient/volume/v2/volume_backend.py34
1 files changed, 23 insertions, 11 deletions
diff --git a/openstackclient/volume/v2/volume_backend.py b/openstackclient/volume/v2/volume_backend.py
index c5194d35..5e9eaf48 100644
--- a/openstackclient/volume/v2/volume_backend.py
+++ b/openstackclient/volume/v2/volume_backend.py
@@ -28,7 +28,7 @@ class ShowCapability(command.Lister):
parser.add_argument(
"host",
metavar="<host>",
- help=_("List capabilities of specified host (host@backend-name)")
+ help=_("List capabilities of specified host (host@backend-name)"),
)
return parser
@@ -55,10 +55,16 @@ class ShowCapability(command.Lister):
capability_data['key'] = key
print_data.append(capability_data)
- return (columns,
- (utils.get_dict_properties(
- s, columns,
- ) for s in print_data))
+ return (
+ columns,
+ (
+ utils.get_dict_properties(
+ s,
+ columns,
+ )
+ for s in print_data
+ ),
+ )
class ListPool(command.Lister):
@@ -70,7 +76,7 @@ class ListPool(command.Lister):
"--long",
action="store_true",
default=False,
- help=_("Show detailed information about pools.")
+ help=_("Show detailed information about pools."),
)
# TODO(smcginnis): Starting with Cinder microversion 3.33, user is also
# able to pass in --filters with a <key>=<value> pair to filter on.
@@ -98,7 +104,7 @@ class ListPool(command.Lister):
'Volumes',
'Capacity',
'Allocated',
- 'Max Over Ratio'
+ 'Max Over Ratio',
]
else:
columns = [
@@ -107,7 +113,13 @@ class ListPool(command.Lister):
headers = columns
data = volume_client.pools.list(detailed=parsed_args.long)
- return (headers,
- (utils.get_item_properties(
- s, columns,
- ) for s in data))
+ return (
+ headers,
+ (
+ utils.get_item_properties(
+ s,
+ columns,
+ )
+ for s in data
+ ),
+ )