mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
Mount shared alloc dir, modified API and tests
This commit is contained in:
@@ -106,9 +106,9 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
|
||||
}
|
||||
|
||||
// Get the tasks local directory.
|
||||
taskDir, err := ctx.AllocDir.TaskDir(d.DriverContext.taskName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
taskDir, ok := ctx.AllocDir.TaskDirs[d.DriverContext.taskName]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("Could not find task directory for task: %v", d.DriverContext.taskName)
|
||||
}
|
||||
taskLocal := filepath.Join(taskDir, allocdir.TaskLocal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user