mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Fix the ExecTask function in DriverExecTaskNotSupported (#6145)
This fixes the ExecTask definition to match with the DriverPlugin interface.
This commit is contained in:
committed by
Nick Ethier
parent
4320d87be5
commit
50068fc348
@@ -109,8 +109,8 @@ func (DriverSignalTaskNotSupported) SignalTask(taskID, signal string) error {
|
||||
// DriverPlugin interface.
|
||||
type DriverExecTaskNotSupported struct{}
|
||||
|
||||
func (_ DriverExecTaskNotSupported) ExecTask(taskID, signal string) error {
|
||||
return fmt.Errorf("ExecTask is not supported by this driver")
|
||||
func (_ DriverExecTaskNotSupported) ExecTask(taskID string, cmd []string, timeout time.Duration) (*ExecTaskResult, error) {
|
||||
return nil, fmt.Errorf("ExecTask is not supported by this driver")
|
||||
}
|
||||
|
||||
type HealthState string
|
||||
|
||||
Reference in New Issue
Block a user