From 9800b7dcfef751b8915de82dbb450ba4d548b753 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 4 Feb 2016 16:38:17 -0800 Subject: [PATCH] Updated the value of the magic cookie --- client/driver/executor_plugin.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/driver/executor_plugin.go b/client/driver/executor_plugin.go index 5d7d644c0..9cb5f7720 100644 --- a/client/driver/executor_plugin.go +++ b/client/driver/executor_plugin.go @@ -12,20 +12,23 @@ import ( var HandshakeConfig = plugin.HandshakeConfig{ ProtocolVersion: 1, - MagicCookieKey: "executor_plugin", - MagicCookieValue: "value", + MagicCookieKey: "NOMAD_PLUGIN_MAGIC_COOKIE", + MagicCookieValue: "e4327c2e01eabfd75a8a67adb114fb34a757d57eee7728d857a8cec6e91a7255", } var PluginMap = map[string]plugin.Plugin{ "executor": new(ExecutorPlugin), } +// ExecutorReattachConfig is the config that we seralize and de-serialize and +// store in disk type ExecutorReattachConfig struct { Pid int AddrNet string AddrName string } +// PluginConfig returns a config from an ExecutorReattachConfig func (c *ExecutorReattachConfig) PluginConfig() *plugin.ReattachConfig { var addr net.Addr switch c.AddrNet { @@ -45,6 +48,7 @@ type ExecutorRPC struct { client *rpc.Client } +// LaunchCmdArgs wraps a user command and the args for the purposes of RPC type LaunchCmdArgs struct { Cmd *executor.ExecCommand Ctx *executor.ExecutorContext