From 9feb8b728a2eb3afbfadc29b6777a114fe4f3225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Tue, 19 Feb 2013 17:46:47 +0100 Subject: [PATCH] pickle_provider: consts moved to consts.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/consts.py | 1 + tuned/storage/pickle_provider.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = {}