mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
structs check TaskGroup.Update for nil
This commit is contained in:
@@ -3488,7 +3488,7 @@ func (j *Job) Warnings() error {
|
||||
outer := fmt.Errorf("Group %q has warnings: %v", tg.Name, err)
|
||||
mErr.Errors = append(mErr.Errors, outer)
|
||||
}
|
||||
if tg.Update.AutoPromote {
|
||||
if tg.Update != nil && tg.Update.AutoPromote {
|
||||
ap += 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user