Skip to content

Commit

Permalink
client/driver/env: use 'job.Dispatch' to trigger optional meta logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nickethier committed Jun 11, 2018
1 parent e8f9b40 commit e325e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/driver/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (b *Builder) setAlloc(alloc *structs.Allocation) *Builder {
taskMetaSize := len(combined) * 2

// if job is parameterized initialize optional meta to empty strings
if alloc.Job.IsParameterized() {
if alloc.Job.Dispatched {
b.taskMeta = make(map[string]string,
taskMetaSize+(len(alloc.Job.ParameterizedJob.MetaOptional)*2))

Expand Down

0 comments on commit e325e85

Please sign in to comment.