mirror of https://github.com/databricks/cli.git
Only set ComputeID value when `--compute-id` flag provided (#1229)
## Changes Fixes an issue when `compute_id` is defined in the bundle config, correctly replaced in `validate` command but not used in `deploy` command ## Tests Manually
This commit is contained in:
parent
1588a14d07
commit
1b4a774609
|
@ -32,7 +32,9 @@ func newDeployCommand() *cobra.Command {
|
|||
bundle.ApplyFunc(ctx, b, func(context.Context, *bundle.Bundle) error {
|
||||
b.Config.Bundle.Force = force
|
||||
b.Config.Bundle.Deployment.Lock.Force = forceLock
|
||||
b.Config.Bundle.ComputeID = computeID
|
||||
if cmd.Flag("compute-id").Changed {
|
||||
b.Config.Bundle.ComputeID = computeID
|
||||
}
|
||||
|
||||
if cmd.Flag("fail-on-active-runs").Changed {
|
||||
b.Config.Bundle.Deployment.FailOnActiveRuns = failOnActiveRuns
|
||||
|
|
Loading…
Reference in New Issue