client: fix bug during 0.8 state up grade that causes external drivers to fail

This commit is contained in:
Nick Ethier
2019-01-30 14:22:29 -05:00
parent ff9597b513
commit aa713a4d9f
7 changed files with 2 additions and 12 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/hashicorp/nomad/client/state"
"github.com/hashicorp/nomad/drivers/shared/executor"
"github.com/hashicorp/nomad/helper/uuid"
"github.com/hashicorp/nomad/plugins/drivers"
pstructs "github.com/hashicorp/nomad/plugins/shared/structs"
)
@@ -22,7 +21,6 @@ func (d *Driver) recoverPre09Task(h *drivers.TaskHandle) error {
return fmt.Errorf("failed to decode reattach config from pre09 handle: %v", err)
}
h.Config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
d.logger.With("task_name", h.Config.Name, "alloc_id", h.Config.AllocID))
if err != nil {