added field names to struct initializations.

This commit is contained in:
Pradyumna Kaushik 2017-12-22 12:22:39 -08:00
parent ff545e8aa6
commit e3278120d6
6 changed files with 78 additions and 29 deletions

View file

@ -63,7 +63,7 @@ func NewDefaultUpdateJob(config *aurora.TaskConfig) *UpdateJob {
req.Settings.RollbackOnFailure = true
//TODO(rdelvalle): Deep copy job struct to avoid unexpected behavior
return &UpdateJob{job, req}
return &UpdateJob{Job: job, req: req}
}
func NewUpdateJob(config *aurora.TaskConfig, settings *aurora.JobUpdateSettings) *UpdateJob {
@ -94,7 +94,7 @@ func NewUpdateJob(config *aurora.TaskConfig, settings *aurora.JobUpdateSettings)
}
//TODO(rdelvalle): Deep copy job struct to avoid unexpected behavior
return &UpdateJob{job, req}
return &UpdateJob{Job: job, req: req}
}
// Set instance count the job will have after the update.