mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
client/driver/env: use 'job.Dispatch' to trigger optional meta logic
This commit is contained in:
2
client/driver/env/env.go
vendored
2
client/driver/env/env.go
vendored
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user