mirror of https://github.com/databricks/cli.git
always prepend /Workspace unless it already there
This commit is contained in:
parent
0c00ddef72
commit
e8453d6a02
|
@ -84,7 +84,7 @@ func FetchRepositoryInfoAPI(ctx context.Context, path vfs.Path, w *databricks.Wo
|
||||||
}
|
}
|
||||||
|
|
||||||
func fixResponsePath(path string) string {
|
func fixResponsePath(path string) string {
|
||||||
if strings.HasPrefix(path, "/Users/") {
|
if !strings.HasPrefix(path, "/Workspace/") {
|
||||||
return "/Workspace/" + path
|
return "/Workspace/" + path
|
||||||
}
|
}
|
||||||
return path
|
return path
|
||||||
|
|
Loading…
Reference in New Issue