-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jobs): fix race condition in override (#2988)
fixes a case where parameter overrides would override the base job configuration as well as the job in the context. this is because the previous implementation would assign a reference to `context[it]` instead of a copy. when the parameter overriding was done it would not only modify the fields in context but also the base configuration. this presented itself when running > 1 job in parallel. by focing a new copy (via `converValue` for simplicity) we get a fresh object reference we can assign. fixes spinnaker/spinnaker#4487
- Loading branch information
1 parent
1aaa72c
commit e66bbc9
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters