From 50068fc3480efc1dbf97edf331090fd689b28079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Thu, 29 Aug 2019 17:36:29 +0200 Subject: [PATCH] Fix the ExecTask function in DriverExecTaskNotSupported (#6145) This fixes the ExecTask definition to match with the DriverPlugin interface. --- plugins/drivers/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/drivers/driver.go b/plugins/drivers/driver.go index a1b8f2f3e..d921b4eb2 100644 --- a/plugins/drivers/driver.go +++ b/plugins/drivers/driver.go @@ -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