Do not arm a scheduled step of a module held as found on an adopted node (hq ADR 0103)
This commit is contained in:
@@ -843,7 +843,11 @@ func applyAndKeep(ctx context.Context, opts options, raw []byte, signed *store.D
|
||||
// declared is forgotten — and after a host restart the first apply rebuilds them all. A nil
|
||||
// scheduler is the one-shot CLI path, which exits rather than staying up to fire anything.
|
||||
if sched != nil {
|
||||
sched.Sync(declared)
|
||||
held := map[string]bool{}
|
||||
for _, h := range updated.Held {
|
||||
held[h.ID] = true
|
||||
}
|
||||
sched.Sync(declared, held)
|
||||
}
|
||||
|
||||
report := link.Report{Carried: carriedPorts(updated), Declared: digestOf(raw)}
|
||||
|
||||
Reference in New Issue
Block a user