Skip to content

Commit c6fd04d

Browse files
committed
Fix #1318: Use wok function to load plugin config
Signed-off-by: Aline Manera <[email protected]>
1 parent 5ca39d1 commit c6fd04d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

config.py.in

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import libvirt
2222
import os
2323
import platform
2424
import threading
25-
from cherrypy.lib.reprconf import Parser
2625

2726
from wok.config import PluginConfig, PluginPaths
27+
from wok.utils import load_plugin_conf
2828
from wok.xmlutils.utils import xpath_get_text
2929

3030
kimchiLock = threading.Lock()
@@ -70,8 +70,7 @@ def get_virtviewerfiles_path():
7070

7171

7272
def get_config():
73-
plugin_conf = PluginPaths('kimchi').conf_file
74-
return Parser().dict_from_file(plugin_conf)
73+
return load_plugin_conf('kimchi')
7574

7675

7776
config = get_config()

0 commit comments

Comments
 (0)