Bug fix for metadata duplicates as well as un-initialized GPU re… (#103)

* Fix for metadata duplicates as well.
* Fix for un-initialized GPU resource when creating a new job update.
This commit is contained in:
Renan DelValle 2019-03-15 15:10:31 -07:00 committed by GitHub
parent c997b90720
commit f7bd7cc20f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -96,6 +96,7 @@ func NewUpdateJob(config *aurora.TaskConfig, settings *aurora.JobUpdateSettings)
}
if ptr.NumGpus != nil {
job.resources[GPU] = &aurora.Resource{}
job.resources[GPU].NumGpus = ptr.NumGpus
continue // Guard against Union violations that Go won't enforce
}