Skip to content

Commit

Permalink
Remove location information for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkats-db committed Jan 27, 2025
1 parent b31ed2d commit 9466bdc
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bundle/config/mutator/process_target_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
}
Expand Down

0 comments on commit 9466bdc

Please sign in to comment.