Update bundle/config/validate/no_workspace_prefix_used.go

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
This commit is contained in:
Andrew Nester 2024-09-02 11:08:32 +02:00
parent 9675aa7294
commit 6f300a1089
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func (m *noWorkspacePrefixUsed) Apply(ctx context.Context, b *bundle.Bundle) dia
"/Workspace/${workspace.state_path}", "/Workspace/${workspace.state_path}",
} }
// Walk through the bundle configuration, check all the string leaves and // Walk through the bundle configuration, check all the string leafs and
// see if any of the prefixes are used in the remote path. // see if any of the prefixes are used in the remote path.
_, err := dyn.Walk(b.Config.Value(), func(p dyn.Path, v dyn.Value) (dyn.Value, error) { _, err := dyn.Walk(b.Config.Value(), func(p dyn.Path, v dyn.Value) (dyn.Value, error) {
vv, ok := v.AsString() vv, ok := v.AsString()