Skip to content

Commit

Permalink
Don't overwrite plugins from /etc/dkron dir
Browse files Browse the repository at this point in the history
fixes #275
  • Loading branch information
Victor Castell committed May 3, 2018
1 parent 1d3da88 commit a64ad1c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@ func (p *Plugins) DiscoverPlugins() error {
if err != nil {
logrus.WithError(err).Error("Error loading exe directory")
} else {
processors, err = plugin.Discover("dkron-processor-*", filepath.Dir(exePath))
executors, err = plugin.Discover("dkron-executor-*", filepath.Dir(exePath))
p, err := plugin.Discover("dkron-processor-*", filepath.Dir(exePath))
if err != nil {
return err
}
processors = append(processors, p...)
e, err := plugin.Discover("dkron-executor-*", filepath.Dir(exePath))
if err != nil {
return err
}
executors = append(executors, e...)
}

for _, file := range processors {
Expand Down

0 comments on commit a64ad1c

Please sign in to comment.