From fb05935de4809e508e176587c0cab659c5b3a61f Mon Sep 17 00:00:00 2001 From: Shishir Mahajan Date: Thu, 7 Jan 2021 10:23:43 -0800 Subject: [PATCH] Fix issue in Recover Task. --- containerd/driver.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/containerd/driver.go b/containerd/driver.go index bb31955..336452b 100644 --- a/containerd/driver.go +++ b/containerd/driver.go @@ -474,11 +474,6 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error { return fmt.Errorf("failed to decode task state from handle: %v", err) } - var driverConfig TaskConfig - if err := handle.Config.DecodeDriverConfig(&driverConfig); err != nil { - return fmt.Errorf("failed to decode driver config: %v", err) - } - container, err := d.loadContainer(taskState.ContainerName) if err != nil { return fmt.Errorf("Error in recovering container: %v", err)