From 7b13b7de2617181c3775f1f24e247a19ee7147be Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 24 May 2022 12:35:10 -0700 Subject: [PATCH] Remove useless replace() call --- scripts/wk/os/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wk/os/linux.py b/scripts/wk/os/linux.py index 03023af7..0a11405f 100644 --- a/scripts/wk/os/linux.py +++ b/scripts/wk/os/linux.py @@ -26,7 +26,7 @@ def build_volume_report(device_path=None) -> list: """ def _get_volumes(dev, indent=0) -> list: """Convert lsblk JSON tree to a flat list of items, returns list.""" - dev['name'] = f'{" "*indent}{dev["name"].replace("/dev/mapper/", "")}' + dev['name'] = f'{" "*indent}{dev["name"]}' volumes = [dev] for child in dev.get('children', []): volumes.extend(_get_volumes(child, indent=indent+1))