Adding console targets back into systemtarget log slice (#19398)

This commit is contained in:
Sveinn
2024-04-02 17:56:14 -05:00
committed by GitHub
parent 912bbb2f1d
commit ba46ee5dfa
2 changed files with 4 additions and 6 deletions

View File

@@ -192,8 +192,8 @@ func updateHTTPTargets(ctx context.Context, cfgs map[string]http.Config, targetL
}
}
oldTargets := make([]Target, len(*targetList))
copy(oldTargets, *targetList)
oldTargets, others := splitTargets(*targetList, types.TargetHTTP)
newWebhooks = append(newWebhooks, others...)
for i := range oldTargets {
currentTgt, ok := oldTargets[i].(*http.Target)