Skip to content

Commit

Permalink
Fix #1318: Use wok function to load plugin config
Browse files Browse the repository at this point in the history
Signed-off-by: Aline Manera <[email protected]>
  • Loading branch information
alinefm committed Sep 15, 2020
1 parent 5ca39d1 commit c6fd04d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import libvirt
import os
import platform
import threading
from cherrypy.lib.reprconf import Parser

from wok.config import PluginConfig, PluginPaths
from wok.utils import load_plugin_conf
from wok.xmlutils.utils import xpath_get_text

kimchiLock = threading.Lock()
Expand Down Expand Up @@ -70,8 +70,7 @@ def get_virtviewerfiles_path():


def get_config():
plugin_conf = PluginPaths('kimchi').conf_file
return Parser().dict_from_file(plugin_conf)
return load_plugin_conf('kimchi')


config = get_config()
Expand Down

0 comments on commit c6fd04d

Please sign in to comment.