mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
rawexec: fix misleading log
This commit is contained in:
@@ -477,8 +477,9 @@ func (d *Driver) SignalTask(taskID string, signal string) error {
|
||||
|
||||
sig := os.Interrupt
|
||||
if s, ok := signals.SignalLookup[signal]; ok {
|
||||
d.logger.Warn("signal to send to task unknown, using SIGINT", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
sig = s
|
||||
} else {
|
||||
d.logger.Warn("signal to send to task unknown, using SIGINT", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
}
|
||||
return handle.exec.Signal(sig)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user