mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
client: fix bug during 0.8 state up grade that causes external drivers to fail
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user