From 787018ff1171aee7dbcf5de7f9878c6111fb88a3 Mon Sep 17 00:00:00 2001 From: Gil Bregman Date: Mon, 14 Oct 2024 14:45:55 +0300 Subject: [PATCH] Remove "RBD Pool" column fron "namespace list" output. Fixes #899. Signed-off-by: Gil Bregman --- control/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/control/cli.py b/control/cli.py index 1541000b..d4b580f2 100644 --- a/control/cli.py +++ b/control/cli.py @@ -1557,8 +1557,7 @@ def ns_list(self, args): namespaces_list.append([ns.nsid, break_string(ns.bdev_name, "-", 2), - ns.rbd_pool_name, - ns.rbd_image_name, + f"{ns.rbd_pool_name}/{ns.rbd_image_name}", self.format_size(ns.rbd_image_size), self.format_size(ns.block_size), break_string(ns.uuid, "-", 3), @@ -1575,7 +1574,7 @@ def ns_list(self, args): else: table_format = "plain" namespaces_out = tabulate(namespaces_list, - headers = ["NSID", "Bdev\nName", "RBD\nPool", "RBD\nImage", + headers = ["NSID", "Bdev\nName", "RBD\nImage", "Image\nSize", "Block\nSize", "UUID", "Load\nBalancing\nGroup", "Visibility", "R/W IOs\nper\nsecond", "R/W MBs\nper\nsecond", "Read MBs\nper\nsecond", "Write MBs\nper\nsecond"],