Skip to content

Commit

Permalink
Merge pull request #481 from gbregman/devel
Browse files Browse the repository at this point in the history
Remove model number from "subsystem list" output
  • Loading branch information
gbregman authored Mar 6, 2024
2 parents eafc0af + 6b05c0e commit ed4a184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,15 +661,15 @@ def subsystem_list(self, args):
return errno.ENODEV
ctrls_id = f"{s.min_cntlid}-{s.max_cntlid}"
ha_str = "enabled" if s.enable_ha else "disabled"
one_subsys = [s.subtype, s.nqn, ha_str, s.serial_number, s.model_number, ctrls_id, s.namespace_count, s.max_namespaces]
one_subsys = [s.subtype, s.nqn, ha_str, s.serial_number, ctrls_id, s.namespace_count, s.max_namespaces]
subsys_list.append(one_subsys)
if len(subsys_list) > 0:
if args.format == "text":
table_format = "fancy_grid"
else:
table_format = "plain"
subsys_out = tabulate(subsys_list,
headers = ["Subtype", "NQN", "HA State", "Serial Number", "Model Number", "Controller IDs",
headers = ["Subtype", "NQN", "HA State", "Serial\nNumber", "Controller IDs",
"Namespace\nCount", "Max\nNamespaces"],
tablefmt=table_format)
prefix = "Subsystems"
Expand Down

0 comments on commit ed4a184

Please sign in to comment.