Skip to content

Commit 1b443a9

Browse files
authored
Merge pull request #1633 from gbregman/devel
Adjust the width of the namespace list table.
2 parents 3b5257b + 9e8b4dc commit 1b443a9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

control/cli.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,6 +2233,9 @@ def ns_list(self, args):
22332233
verbose_info = [cluster_name]
22342234
lb_group += f" ({configured_lb_group})"
22352235
location = ns.location if ns.location else "<N/A>"
2236+
qos_str = f"{self.get_qos_limit_str_value(ns.rw_mbytes_per_second)}\n" \
2237+
f"{self.get_qos_limit_str_value(ns.r_mbytes_per_second)}\n" \
2238+
f"{self.get_qos_limit_str_value(ns.w_mbytes_per_second)}"
22362239
namespaces_list.append([subsys_nqn,
22372240
ns.nsid,
22382241
break_string(ns.bdev_name, "-", 2),
@@ -2245,10 +2248,7 @@ def ns_list(self, args):
22452248
location,
22462249
visibility,
22472250
self.get_qos_limit_str_value(ns.rw_ios_per_second),
2248-
self.get_qos_limit_str_value(ns.rw_mbytes_per_second),
2249-
self.get_qos_limit_str_value(ns.r_mbytes_per_second),
2250-
self.get_qos_limit_str_value(
2251-
ns.w_mbytes_per_second)] + verbose_info)
2251+
qos_str] + verbose_info)
22522252

22532253
if len(namespaces_list) > 0:
22542254
if args.format == "text":
@@ -2272,10 +2272,9 @@ def ns_list(self, args):
22722272
"Load\nBalancing\nGroup" + configured_txt,
22732273
"Location",
22742274
"Visibility",
2275-
"R/W IOs\nper\nsecond",
2276-
"R/W MBs\nper\nsecond",
2277-
"Read MBs\nper\nsecond",
2278-
"Write MBs\nper\nsecond"] + verbose_headers,
2275+
"IOs per\nsecond",
2276+
"R/W, R, W MBs\n"
2277+
"per second"] + verbose_headers,
22792278
tablefmt=table_format)
22802279
if args.nsid:
22812280
prefix = f"Namespace {args.nsid} in"

0 commit comments

Comments
 (0)