Change allocdir variable name for clarity

This commit is contained in:
Alex Dadgar 2015-09-24 15:51:58 -07:00
parent 8d7ededad7
commit 530e2d3c6d
1 changed files with 3 additions and 3 deletions

View File

@ -278,9 +278,9 @@ func (r *AllocRunner) Run() {
// Create the execution context
if r.ctx == nil {
alloc := allocdir.NewAllocDir(filepath.Join(r.config.AllocDir, r.alloc.ID))
alloc.Build(tg.Tasks)
r.ctx = driver.NewExecContext(alloc)
allocDir := allocdir.NewAllocDir(filepath.Join(r.config.AllocDir, r.alloc.ID))
allocDir.Build(tg.Tasks)
r.ctx = driver.NewExecContext(allocDir)
}
// Start the task runners