mirror of https://github.com/databricks/cli.git
fix: Reuse existing `root` variable
This commit is contained in:
parent
00bb683be9
commit
e8825d559f
|
@ -226,7 +226,7 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
|
||||||
root := b.SyncRootPath
|
root := b.SyncRootPath
|
||||||
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
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 = root
|
||||||
} else {
|
} else {
|
||||||
disabled := false
|
disabled := false
|
||||||
b.Config.Presets.InPlaceDeployment = &disabled
|
b.Config.Presets.InPlaceDeployment = &disabled
|
||||||
|
|
Loading…
Reference in New Issue