mirror of https://github.com/databricks/cli.git
remove confirmation check
This commit is contained in:
parent
732b4f4b2c
commit
57421f185c
|
@ -43,18 +43,7 @@ func (w *apply) Apply(ctx context.Context, b *bundle.Bundle) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ask for confirmation, if needed
|
// We do not block for confirmation checks at deploy
|
||||||
if !b.Plan.ConfirmApply {
|
|
||||||
b.Plan.ConfirmApply, err = cmdio.Ask(ctx, "Proceed with apply? [y/n]: ")
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if !b.Plan.ConfirmApply {
|
|
||||||
// return if confirmation was not provided
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
cmdio.LogString(ctx, "Starting deployment")
|
cmdio.LogString(ctx, "Starting deployment")
|
||||||
|
|
||||||
// Apply terraform according to the plan
|
// Apply terraform according to the plan
|
||||||
|
|
Loading…
Reference in New Issue