mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
dont print reschedule policy in error message
This commit is contained in:
@@ -3303,7 +3303,7 @@ func (tg *TaskGroup) Validate(j *Job) error {
|
||||
|
||||
if j.Type == JobTypeSystem {
|
||||
if tg.ReschedulePolicy != nil {
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("System jobs should not have a reschedule policy but got %+v", tg.ReschedulePolicy))
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("System jobs should not have a reschedule policy"))
|
||||
}
|
||||
} else {
|
||||
if tg.ReschedulePolicy != nil {
|
||||
|
||||
Reference in New Issue
Block a user