core: use C.bool to detect value of "handler" field in PLUGIN_INFO

This commit is contained in:
Goffi 2018-03-16 17:00:57 +01:00
commit 50a7be4fe4

View file

@ -269,7 +269,7 @@ class SAT(service.Service):
if optional:
return
raise ImportError(u"Error during initiation")
if 'handler' in plugin_info and plugin_info['handler'] == 'yes':
if C.bool(plugin_info.get(C.PI_HANDLER, C.BOOL_FALSE)):
self.plugins[import_name].is_handler = True
else:
self.plugins[import_name].is_handler = False