Fix the ExecTask function in DriverExecTaskNotSupported (#6145)

This fixes the ExecTask definition to match with the DriverPlugin
interface.
This commit is contained in:
Grégoire Delattre
2019-08-29 17:36:29 +02:00
committed by Nick Ethier
parent 4320d87be5
commit 50068fc348

View File

@@ -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