Skip to content

Commit

Permalink
*: fixed broken template and metadata
Browse files Browse the repository at this point in the history
Resolves coreos#1514
  • Loading branch information
kayrus committed Mar 29, 2016
1 parent 70a3b3a commit 2d2f4f0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,17 @@ func (j *Job) requirements() map[string][]string {
requirements[key] = make([]string, 0)
}

if uni != nil {
for i, v := range values {
values[i] = unitPrintf(v, *uni)
processedValues := make([]string, len(values))

for i, v := range values {
if uni != nil {
processedValues[i] = unitPrintf(v, *uni)
} else {
processedValues[i] = v
}
}
requirements[key] = values

requirements[key] = processedValues
}

return requirements
Expand Down

0 comments on commit 2d2f4f0

Please sign in to comment.