[Kimchi-devel] [PATCH] [WoK] Fixing loading of plug-ins without 'sub_nodes'

dhbarboza82 at gmail.com dhbarboza82 at gmail.com
Mon Jan 25 11:17:58 UTC 2016


From: Daniel Henrique Barboza <dhbarboza82 at gmail.com>

Recent WoK changes were made considering that all WoK plug-ins
have the control modules in a dir named 'control', but
Ginger, for historical/unknown reasons, uses the dir
'controls'. The result is that WoK became unable of loading
Ginger because the code was executing a 'continue' in the
'for' loop, preventing the loading of plug-in at all.

This patch amends it.

Signed-off-by: Daniel Henrique Barboza <dhbarboza82 at gmail.com>
---
 src/wok/server.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/wok/server.py b/src/wok/server.py
index 4fd380c..c2f6c65 100644
--- a/src/wok/server.py
+++ b/src/wok/server.py
@@ -177,7 +177,6 @@ class Server(object):
                     "Failed to import subnodes for plugin %s, "
                     "error: %s" % (plugin_class, e.message)
                 )
-                continue
 
             urlSubNodes = {}
             for ident, node in sub_nodes.items():
-- 
2.5.0




More information about the Kimchi-devel mailing list