mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
OpProcessStop removed node from required field
This commit is contained in:
parent
b4e60ca3f5
commit
6e43364839
1 changed files with 5 additions and 4 deletions
|
@ -619,18 +619,19 @@ func (m methodREQOpProcessStop) handler(proc process, message Message, node stri
|
||||||
// real method for the message.
|
// real method for the message.
|
||||||
var mt Method
|
var mt Method
|
||||||
|
|
||||||
if v := len(message.MethodArgs); v != 4 {
|
if v := len(message.MethodArgs); v != 3 {
|
||||||
er := fmt.Errorf("error: OpProcessStop: methodArgs should contain 4 elements, found %v", v)
|
er := fmt.Errorf("error: OpProcessStop: methodArgs should contain 4 elements, found %v", v)
|
||||||
sendErrorLogMessage(proc.configuration, proc.processes.metrics, proc.toRingbufferCh, proc.node, er)
|
sendErrorLogMessage(proc.configuration, proc.processes.metrics, proc.toRingbufferCh, proc.node, er)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf(" * DEBUG : message.ToNode: %v\n", message.ToNode)
|
||||||
|
|
||||||
// --- Parse and check the method arguments given.
|
// --- Parse and check the method arguments given.
|
||||||
fmt.Printf(" * DEBUG : %v\n", message.MethodArgs)
|
fmt.Printf(" * DEBUG : %v\n", message.MethodArgs)
|
||||||
methodString := message.MethodArgs[0]
|
methodString := message.MethodArgs[0]
|
||||||
node := message.MethodArgs[1]
|
kind := message.MethodArgs[1]
|
||||||
kind := message.MethodArgs[2]
|
idString := message.MethodArgs[2]
|
||||||
idString := message.MethodArgs[3]
|
|
||||||
|
|
||||||
method := Method(methodString)
|
method := Method(methodString)
|
||||||
tmpH := mt.getHandler(Method(method))
|
tmpH := mt.getHandler(Method(method))
|
||||||
|
|
Loading…
Reference in a new issue