refs #1594 fix a bug

pull/1/head
Natalia Serrano 2025-02-20 14:02:37 +01:00
parent ad404f9982
commit 45cfe25222
1 changed files with 1 additions and 1 deletions

View File

@ -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)