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) {
|
||||
enabled := true
|
||||
t.InPlaceDeployment = &enabled
|
||||
root := b.SyncRootPath
|
||||
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
||||
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
||||
enabled := true
|
||||
t.InPlaceDeployment = &enabled
|
||||
}
|
||||
}
|
||||
|
||||
if !config.IsExplicitlyDisabled(t.PipelinesDevelopment) {
|
||||
root := b.SyncRootPath
|
||||
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
||||
|
||||
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
||||
enabled := true
|
||||
t.PipelinesDevelopment = &enabled
|
||||
}
|
||||
enabled := true
|
||||
t.PipelinesDevelopment = &enabled
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue