mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Canonicalize and Merge CheckRestart in api
This commit is contained in:
@@ -685,13 +685,6 @@ func ApiTaskToStructsTask(apiTask *api.Task, structsTask *structs.Task) {
|
||||
Tags: service.Tags,
|
||||
AddressMode: service.AddressMode,
|
||||
}
|
||||
if service.CheckRestart != nil {
|
||||
structsTask.Services[i].CheckRestart = &structs.CheckRestart{
|
||||
Limit: service.CheckRestart.Limit,
|
||||
Grace: *service.CheckRestart.Grace,
|
||||
IgnoreWarnings: service.CheckRestart.IgnoreWarnings,
|
||||
}
|
||||
}
|
||||
|
||||
if l := len(service.Checks); l != 0 {
|
||||
structsTask.Services[i].Checks = make([]*structs.ServiceCheck, l)
|
||||
|
||||
Reference in New Issue
Block a user