Fix issue in Recover Task.

This commit is contained in:
Shishir Mahajan 2021-01-07 10:23:43 -08:00
parent 61f1fd201b
commit fb05935de4

View File

@ -474,11 +474,6 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error {
return fmt.Errorf("failed to decode task state from handle: %v", err) 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) container, err := d.loadContainer(taskState.ContainerName)
if err != nil { if err != nil {
return fmt.Errorf("Error in recovering container: %v", err) return fmt.Errorf("Error in recovering container: %v", err)