From 666d2fb50f89d51642ac9e74c18f9ccc4ef28985 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 13 Jun 2023 09:00:08 +0200 Subject: fs: fix typo inside _extend_resize2fs _extend_ntfsresize contains an incorrect variable name inside subprocess.run referring the resize command value. Simplify this variable name inside each specific _extend_* function: s/cmd_resize2fs/cmd s/cmd_ntfsresize/cmd --- src/utils/fs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/utils/fs.py b/src/utils/fs.py index 49da7ce..a025873 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -239,14 +239,14 @@ def _reduce_ntfsresize(partdev): def _extend_resize2fs(partdev): - cmd_resize2fs = shlex.split(f'resize2fs -f {partdev}') - proc = subprocess.run(cmd_resize2fs) + cmd = shlex.split(f'resize2fs -f {partdev}') + proc = subprocess.run(cmd) if proc.returncode != 0: raise RuntimeError(f'Error growing ext4 filesystem at {partdev}') def _extend_ntfsresize(partdev): - cmd_ntfsresize = shlex.split(f'ntfsresize -f {partdev}') - proc = subprocess.run(cmd_resize2fs, input='y') + cmd = shlex.split(f'ntfsresize -f {partdev}') + proc = subprocess.run(cmd, input='y') if proc.returncode != 0: raise RuntimeError(f'Error growing ntfs filesystem at {partdev}') -- cgit v1.2.3-18-g5258