From 9466bdc1e03810ee1472945361463073644c1056 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Mon, 27 Jan 2025 13:06:58 +0100 Subject: [PATCH] Remove location information for now --- bundle/config/mutator/process_target_mode.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/bundle/config/mutator/process_target_mode.go b/bundle/config/mutator/process_target_mode.go index f175566c3..d65e11c73 100644 --- a/bundle/config/mutator/process_target_mode.go +++ b/bundle/config/mutator/process_target_mode.go @@ -166,19 +166,17 @@ func validateProductionMode(ctx context.Context, b *bundle.Bundle, isPrincipalUs // report an error for them. return diag.Diagnostics{ { - Severity: diag.Recommendation, - Summary: "target with 'mode: production' should " + advice, - Detail: adviceDetail, - Locations: b.Config.GetLocations("targets." + b.Config.Bundle.Target), + Severity: diag.Recommendation, + Summary: "target with 'mode: production' should " + advice, + Detail: adviceDetail, }, } } return diag.Diagnostics{ { - Severity: diag.Error, - Summary: "target with 'mode: production' must " + advice, - Detail: adviceDetail, - Locations: b.Config.GetLocations("targets." + b.Config.Bundle.Target), + Severity: diag.Error, + Summary: "target with 'mode: production' must " + advice, + Detail: adviceDetail, }, } }