Do not add disabled modules to the execution queue.
This commit is contained in:
parent
1529a04507
commit
36a12d16be
|
@ -536,6 +536,12 @@ sub parse_conf_modules($) {
|
|||
# Check for invalid modules
|
||||
next unless (($module->{'name'} ne '' && $module->{'func'} != 0) || $module->{'func'} == \&module_plugin);
|
||||
|
||||
# Skip disabled modules.
|
||||
if (defined($module->{'disabled'}) && $module->{'disabled'} == 1) {
|
||||
log_message('setup', 'Skipping disabled module "' . $module->{'name'} . '"');
|
||||
next;
|
||||
}
|
||||
|
||||
# Set the intensive interval
|
||||
if ($module->{'is_intensive'} == 1) {
|
||||
$module->{'intensive_interval'} = $module->{'interval'};
|
||||
|
|
|
@ -1117,6 +1117,12 @@ Pandora_Module_Factory::getModuleFromDefinition (string definition) {
|
|||
}
|
||||
}
|
||||
|
||||
/* Skip disabled modules */
|
||||
if (module_disabled == "1") {
|
||||
pandoraLog ("Skipping disabled module \"%s\"", module_name.c_str ());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Create module objects */
|
||||
if (module_exec != "") {
|
||||
module = new Pandora_Module_Exec (module_name,
|
||||
|
|
Loading…
Reference in New Issue