mirror of https://github.com/databricks/cli.git
Update bundle/config/mutator/process_target_mode.go
Co-authored-by: Pieter Noordhuis <pcnoordhuis@gmail.com>
This commit is contained in:
parent
2dad625b84
commit
595beed750
|
@ -158,7 +158,10 @@ func isRunAsSet(r config.Resources) bool {
|
|||
}
|
||||
|
||||
func isExplicitRootSet(b *bundle.Bundle) bool {
|
||||
targetConfig := b.Config.Targets[b.Config.Bundle.Target]
|
||||
targetConfig, ok := b.Config.Targets[b.Config.Bundle.Target]
|
||||
if !ok || targetConfig == nil {
|
||||
return false
|
||||
}
|
||||
if targetConfig.Workspace == nil {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue