From 481ce5794f6ce7822f2a3c01ee9e21263ba1fbb9 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 19 Apr 2024 11:32:53 +0200 Subject: utils: fs: remove unused variable in _reduce_resize2fs ret is set but never used in this method --- src/utils/fs.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/fs.py b/src/utils/fs.py index eae7065..55c24cf 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -219,7 +219,6 @@ def get_filesystem_type(partdev): def _reduce_resize2fs(partdev): - ret = -1 cmd = shlex.split(f'resize2fs -fpM {partdev}') with open('/tmp/command.log', 'ab', 0) as logfile: proc = subprocess.run(cmd, stdout=logfile, stderr=STDOUT) -- cgit v1.2.3-18-g5258