core: use C.bool to detect value of "handler" field in PLUGIN_INFO
This commit is contained in:
parent
3b737b6fec
commit
50a7be4fe4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue