mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
scheduler: fix task-level consul diff (#19230)
Fix `tasksUpdated()` to compare the task level `consul` blocks instead of the group.
This commit is contained in:
@@ -289,7 +289,7 @@ func tasksUpdated(jobA, jobB *structs.Job, taskGroup string) comparison {
|
||||
if !at.Vault.Equal(bt.Vault) {
|
||||
return difference("task vault", at.Vault, bt.Vault)
|
||||
}
|
||||
if c := consulUpdated(a.Consul, b.Consul); c.modified {
|
||||
if c := consulUpdated(at.Consul, bt.Consul); c.modified {
|
||||
return c
|
||||
}
|
||||
if !slices.EqualFunc(at.Templates, bt.Templates, func(a, b *structs.Template) bool { return a.Equal(b) }) {
|
||||
|
||||
Reference in New Issue
Block a user