From 45cfe252222e8f750516af91fdd5c0d496954023 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Thu, 20 Feb 2025 14:02:37 +0100 Subject: [PATCH] refs #1594 fix a bug --- client/lib/engine/bin/DiskLib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/engine/bin/DiskLib.py b/client/lib/engine/bin/DiskLib.py index 6969d47..350a482 100755 --- a/client/lib/engine/bin/DiskLib.py +++ b/client/lib/engine/bin/DiskLib.py @@ -842,7 +842,7 @@ def ogGetPartitionSize (disk, par): sz = subprocess.run (['partx', '-gbo', 'SIZE', PART], capture_output=True, text=True).stdout.strip() if sz: return int (int (sz) / 1024) - sz = subprocess.run (['lvs', '--noheadings', '-o', 'lv_size', '--units', 'k', PART], capture_output=True, text=True).stdout.strip + sz = subprocess.run (['lvs', '--noheadings', '-o', 'lv_size', '--units', 'k', PART], capture_output=True, text=True).stdout.strip() if sz: return int (sz) return FileSystemLib.ogGetFsSize (disk, par)