mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
executors: Unify go-plugin handshake
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
hclog "github.com/hashicorp/go-hclog"
|
||||
"github.com/hashicorp/go-plugin"
|
||||
|
||||
"github.com/hashicorp/nomad/plugins/base"
|
||||
"github.com/hashicorp/nomad/plugins/executor"
|
||||
)
|
||||
|
||||
@@ -42,7 +43,7 @@ func (e *ExecutorPluginCommand) Run(args []string) int {
|
||||
return 1
|
||||
}
|
||||
plugin.Serve(&plugin.ServeConfig{
|
||||
HandshakeConfig: executor.HandshakeConfig,
|
||||
HandshakeConfig: base.Handshake,
|
||||
Plugins: executor.GetPluginMap(
|
||||
stdo,
|
||||
hclog.LevelFromString(executorConfig.LogLevel),
|
||||
|
||||
Reference in New Issue
Block a user