diff --git a/tuned/consts.py b/tuned/consts.py index 54bbd04..ce1786c 100644 --- a/tuned/consts.py +++ b/tuned/consts.py @@ -5,6 +5,7 @@ DBUS_BUS = "com.redhat.tuned" DBUS_INTERFACE = "com.redhat.tuned.control" DBUS_OBJECT = "/Tuned" DEFAULT_PROFILE = "balanced" +DEFAULT_STORAGE_FILE = "/run/tuned/save.pickle" LOAD_DIRECTORIES = ["/usr/lib/tuned", "/etc/tuned"] # number of backups LOG_FILE_COUNT = 2 diff --git a/tuned/storage/pickle_provider.py b/tuned/storage/pickle_provider.py index 4dafd0d..75a0cdd 100644 --- a/tuned/storage/pickle_provider.py +++ b/tuned/storage/pickle_provider.py @@ -2,17 +2,16 @@ import interfaces import tuned.logs import pickle import os +import tuned.consts as consts log = tuned.logs.get() -DEFAULT_STORAGE_FILE = "/run/tuned/save.pickle" - class PickleProvider(interfaces.Provider): __slots__ = ["_path", "_data"] def __init__(self, path=None): if path is None: - path = DEFAULT_STORAGE_FILE + path = consts.DEFAULT_STORAGE_FILE self._path = path self._data = {}