assign names

This commit is contained in:
Alex Dadgar
2017-05-31 11:34:46 -07:00
parent 1dabd206bb
commit 85e0d6fccd
9 changed files with 310 additions and 96 deletions

View File

@@ -380,7 +380,7 @@ func (b *Builder) setTask(task *structs.Task) *Builder {
func (b *Builder) setAlloc(alloc *structs.Allocation) *Builder {
b.allocId = alloc.ID
b.allocName = alloc.Name
b.allocIndex = alloc.Index()
b.allocIndex = int(alloc.Index())
b.jobName = alloc.Job.Name
// Set meta