diff --git a/tuned/profiles/variables.py b/tuned/profiles/variables.py index 396e590..a871ad9 100644 --- a/tuned/profiles/variables.py +++ b/tuned/profiles/variables.py @@ -4,7 +4,7 @@ import tuned.logs import functions.functions as functions import tuned.consts as consts from tuned.utils.commands import commands -from configobj import ConfigObj +from configobj import ConfigObj, ConfigObjError log = tuned.logs.get() diff --git a/tuned/utils/commands.py b/tuned/utils/commands.py index d5b2a1f..672ea0e 100644 --- a/tuned/utils/commands.py +++ b/tuned/utils/commands.py @@ -129,7 +129,7 @@ class commands: os.rename(src, dst) except OSError as error: if not no_error: - log.error("cannot rename file '%s' to '%s': '%s'" % (f, str(error))) + log.error("cannot rename file '%s' to '%s': '%s'" % (src, dst, str(error))) return False return True