Skip to content

Commit

Permalink
add enabled scripts check
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Scherba <[email protected]>
  • Loading branch information
miklezzzz committed Dec 19, 2023
1 parent 929ae34 commit a38c103
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/module_manager/module_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,12 @@ func (mm *ModuleManager) ReregisterModule(moduleName, modulePath string) error {
if isEnabled {
// enqueue module startup sequence if it is enabled
mm.RerunModule(mod.GetName())
} else {
// throw disable module event
mm.moduleEventC <- events.ModuleEvent{
ModuleName: mod.GetName(),
EventType: events.ModuleDisabled,
}
}

return nil
Expand Down

0 comments on commit a38c103

Please sign in to comment.