mirror of https://github.com/databricks/cli.git
fix: Wrong condition
This commit is contained in:
parent
49f6bc9354
commit
e65b50cf3c
|
@ -59,18 +59,17 @@ func transformDevelopmentMode(ctx context.Context, b *bundle.Bundle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !config.IsExplicitlyDisabled(t.InPlaceDeployment) {
|
if !config.IsExplicitlyDisabled(t.InPlaceDeployment) {
|
||||||
enabled := true
|
root := b.SyncRootPath
|
||||||
t.InPlaceDeployment = &enabled
|
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
||||||
|
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
||||||
|
enabled := true
|
||||||
|
t.InPlaceDeployment = &enabled
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !config.IsExplicitlyDisabled(t.PipelinesDevelopment) {
|
if !config.IsExplicitlyDisabled(t.PipelinesDevelopment) {
|
||||||
root := b.SyncRootPath
|
enabled := true
|
||||||
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
t.PipelinesDevelopment = &enabled
|
||||||
|
|
||||||
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
|
||||||
enabled := true
|
|
||||||
t.PipelinesDevelopment = &enabled
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue