Commit c37b6220 authored by Ondřej Lysoněk's avatar Ondřej Lysoněk

tuned-gui: Fix a traceback

Resolves: rhbz#1536835
Fixes #95
Signed-off-by: default avatarOndřej Lysoněk <olysonek@redhat.com>
parent 64517b77
......@@ -686,7 +686,8 @@ class Base(object):
def data_to_profile_config(self):
name = self.entry_profile_name.get_text()
config = configobj.ConfigObj()
config = configobj.ConfigObj(list_values = False,
interpolation = False)
activated = self.combobox_include_profile.get_active()
model = self.combobox_include_profile.get_model()
......
......@@ -65,7 +65,8 @@ class GuiProfileLoader(object):
def load_profile_config(self, profile_name, path):
conf_path = path + '/' + profile_name + '/' + tuned.consts.PROFILE_FILE
profile_config = configobj.ConfigObj(conf_path)
profile_config = configobj.ConfigObj(conf_path, list_values = False,
interpolation = False)
return profile_config
def _locate_profile_path(self, profile_name):
......@@ -97,7 +98,7 @@ class GuiProfileLoader(object):
def save_profile(self, profile):
path = tuned.consts.LOAD_DIRECTORIES[1] + '/' + profile.name
config = configobj.ConfigObj()
config = configobj.ConfigObj(list_values = False, interpolation = False)
config.filename = path + '/' + tuned.consts.PROFILE_FILE
config.initial_comment = ('#', 'tuned configuration', '#')
......@@ -140,7 +141,7 @@ class GuiProfileLoader(object):
if old_profile_name != profile.name:
self.remove_profile(old_profile_name, is_admin=is_admin)
config = configobj.ConfigObj()
config = configobj.ConfigObj(list_values = False, interpolation = False)
config.filename = path + '/' + tuned.consts.PROFILE_FILE
config.initial_comment = ('#', 'tuned configuration', '#')
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment