From 50a7be4fe4dc586f9164586ec66c54a7eaf1fde1 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 16 Mar 2018 17:00:57 +0100 Subject: [PATCH] core: use C.bool to detect value of "handler" field in PLUGIN_INFO --- src/core/sat_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/sat_main.py b/src/core/sat_main.py index 293cd3ae..05efa368 100644 --- a/src/core/sat_main.py +++ b/src/core/sat_main.py @@ -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