mirror of https://github.com/databricks/cli.git
fix: Missing root variable
This commit is contained in:
parent
51c8ef592c
commit
4cf692924c
|
@ -223,7 +223,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.IsExplicitlyEnabled((b.Config.Presets.InPlaceDeployment)) {
|
if config.IsExplicitlyEnabled((b.Config.Presets.InPlaceDeployment)) {
|
||||||
isInWorkspace := ok && strings.HasPrefix(root, "/Workspace/")
|
root := b.SyncRoot.Native()
|
||||||
|
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
||||||
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
||||||
b.Config.Workspace.FilePath = b.SyncRootPath
|
b.Config.Workspace.FilePath = b.SyncRootPath
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue