mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
drivers: use consts for task handle version
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/hashicorp/nomad/plugins/drivers"
|
||||
)
|
||||
|
||||
func (d *Driver) recoverPre0_9Task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
|
||||
func (d *Driver) recoverPre09task(config *drivers.TaskConfig, reattach *plugin.ReattachConfig) error {
|
||||
config.ID = fmt.Sprintf("pre09-%s", uuid.Generate())
|
||||
exec, pluginClient, err := executor.ReattachToPre09Executor(reattach,
|
||||
d.logger.With("task_name", config.Name, "alloc_id", config.AllocID))
|
||||
|
||||
Reference in New Issue
Block a user