changed name

This commit is contained in:
Andrew Nester 2024-10-29 11:50:05 +01:00
parent 16f02c0e50
commit 6659e573c4
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ func (f *folderPermissions) Apply(ctx context.Context, b bundle.ReadOnlyBundle)
return nil
}
bundlePaths := paths.CollectUniquePaths(b.Config().Workspace)
bundlePaths := paths.CollectUniqueWorkspacePathPrefixes(b.Config().Workspace)
var diags diag.Diagnostics
g, ctx := errgroup.WithContext(ctx)

View File

@ -7,7 +7,7 @@ import (
"github.com/databricks/cli/bundle/libraries"
)
func CollectUniquePaths(workspace config.Workspace) []string {
func CollectUniqueWorkspacePathPrefixes(workspace config.Workspace) []string {
rootPath := workspace.RootPath
paths := []string{}
if !libraries.IsVolumesPath(rootPath) && !libraries.IsWorkspaceSharedPath(rootPath) {

View File

@ -54,7 +54,7 @@ func giveAccessForWorkspaceRoot(ctx context.Context, b *bundle.Bundle) error {
}
w := b.WorkspaceClient().Workspace
bundlePaths := paths.CollectUniquePaths(b.Config.Workspace)
bundlePaths := paths.CollectUniqueWorkspacePathPrefixes(b.Config.Workspace)
g, ctx := errgroup.WithContext(ctx)
for _, p := range bundlePaths {