remove confirmation check

This commit is contained in:
Shreyas Goenka 2023-07-12 18:02:41 +02:00
parent 732b4f4b2c
commit 57421f185c
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 12 deletions

View File

@ -43,18 +43,7 @@ func (w *apply) Apply(ctx context.Context, b *bundle.Bundle) error {
return err
}
// Ask for confirmation, if needed
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
}
// We do not block for confirmation checks at deploy
cmdio.LogString(ctx, "Starting deployment")
// Apply terraform according to the plan