Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
*: Prevented unit's Contents modification
Browse files Browse the repository at this point in the history
Resolves #1514
  • Loading branch information
kayrus committed Mar 29, 2016
1 parent bbea486 commit 1c96e6a
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 1c96e6a

Please sign in to comment.