Skip to content

Commit

Permalink
Only set ComputeID value when --compute-id flag provided (#1229)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
andrewnester committed Feb 22, 2024
1 parent 1588a14 commit 1b4a774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/bundle/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b4a774

Please sign in to comment.