Not validating task groups if it's nil in a job
This commit is contained in:
parent
c80f0e38d1
commit
9139777ab7
|
@ -974,8 +974,10 @@ func (tg *TaskGroup) Validate() error {
|
|||
}
|
||||
}
|
||||
|
||||
if err := tg.RestartPolicy.Validate(); err != nil {
|
||||
mErr.Errors = append(mErr.Errors, err)
|
||||
if tg.RestartPolicy != nil {
|
||||
if err := tg.RestartPolicy.Validate(); err != nil {
|
||||
mErr.Errors = append(mErr.Errors, err)
|
||||
}
|
||||
}
|
||||
|
||||
// Check for duplicate tasks
|
||||
|
|
Loading…
Reference in New Issue