Skip to content

Commit

Permalink
changed name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Oct 29, 2024
1 parent 16f02c0 commit 6659e57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bundle/config/validate/folder_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion bundle/paths/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion bundle/permissions/workspace_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6659e57

Please sign in to comment.