mirror of https://github.com/databricks/cli.git
use IsVolumesPath
This commit is contained in:
parent
49b2cf2723
commit
e32ebd0b48
|
@ -2,7 +2,6 @@ package libraries
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/databricks/cli/bundle"
|
"github.com/databricks/cli/bundle"
|
||||||
"github.com/databricks/cli/libs/diag"
|
"github.com/databricks/cli/libs/diag"
|
||||||
|
@ -20,7 +19,7 @@ func GetFilerForLibraries(ctx context.Context, b *bundle.Bundle) (filer.Filer, s
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case strings.HasPrefix(artifactPath, "/Volumes/"):
|
case IsVolumesPath(artifactPath):
|
||||||
return filerForVolume(ctx, b)
|
return filerForVolume(ctx, b)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue