summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-07 12:03:14 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-07 12:20:26 +0200
commitb0d03ce588dd2f9e32be33604211d77e7f83217f (patch)
tree1ae4cccbeafed274d12efba3f25921468ad151f2 /src/utils
parentde17bb6812f9127eaef4d8b4b357822b1367e9a3 (diff)
utils:fs: fix logging statement in get_filesystem_type
Call the error() logging function from the logging object instead of the non existent log variable previously referenced.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/fs.py b/src/utils/fs.py
index 1fd13f1..184b47a 100644
--- a/src/utils/fs.py
+++ b/src/utils/fs.py
@@ -228,7 +228,7 @@ def get_filesystem_type(partdev):
cmd = shlex.split(f'blkid -o value -s TYPE {partdev}')
proc = subprocess.run(cmd, stdout=PIPE, encoding='utf-8')
if proc.returncode != 0:
- log.error(f'Error getting filesystem from {partdev}')
+ logging.error(f'Error getting filesystem from {partdev}')
return "unknown"
return proc.stdout.strip()