Update bundle/config/mutator/rewrite_workspace_prefix.go

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
This commit is contained in:
Andrew Nester 2024-09-10 14:43:21 +02:00
parent 1e503de3d4
commit cb345b1dc7
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func (m *rewriteWorkspacePrefix) Apply(ctx context.Context, b *bundle.Bundle) di
if strings.Contains(vv, path) { if strings.Contains(vv, path) {
diags = append(diags, diag.Diagnostic{ diags = append(diags, diag.Diagnostic{
Severity: diag.Warning, Severity: diag.Warning,
Summary: fmt.Sprintf("%s used in the remote path %s. Please change to use %s instead. See more details here: https://github.com/databricks/cli/blob/main/docs/release_notes/workspace_prefix.md", path, vv, strings.ReplaceAll(vv, "/Workspace/", "")), Summary: fmt.Sprintf("substring %q found in %q. Please update this to %q. For more information, please refer to: https://github.com/databricks/cli/blob/main/docs/release_notes/workspace_prefix.md", path, vv, strings.ReplaceAll(vv, "/Workspace/", "")),
Locations: v.Locations(), Locations: v.Locations(),
Paths: []dyn.Path{p}, Paths: []dyn.Path{p},
}) })