mirror of https://github.com/databricks/cli.git
Remove location information for now
This commit is contained in:
parent
b31ed2dc96
commit
9466bdc1e0
|
@ -166,19 +166,17 @@ func validateProductionMode(ctx context.Context, b *bundle.Bundle, isPrincipalUs
|
||||||
// report an error for them.
|
// report an error for them.
|
||||||
return diag.Diagnostics{
|
return diag.Diagnostics{
|
||||||
{
|
{
|
||||||
Severity: diag.Recommendation,
|
Severity: diag.Recommendation,
|
||||||
Summary: "target with 'mode: production' should " + advice,
|
Summary: "target with 'mode: production' should " + advice,
|
||||||
Detail: adviceDetail,
|
Detail: adviceDetail,
|
||||||
Locations: b.Config.GetLocations("targets." + b.Config.Bundle.Target),
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return diag.Diagnostics{
|
return diag.Diagnostics{
|
||||||
{
|
{
|
||||||
Severity: diag.Error,
|
Severity: diag.Error,
|
||||||
Summary: "target with 'mode: production' must " + advice,
|
Summary: "target with 'mode: production' must " + advice,
|
||||||
Detail: adviceDetail,
|
Detail: adviceDetail,
|
||||||
Locations: b.Config.GetLocations("targets." + b.Config.Bundle.Target),
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue