This commit is contained in:
Shreyas Goenka 2024-08-12 16:16:25 +02:00
parent d270727372
commit 27af70eb81
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func parseTerraformActions(changes []*tfjson.ResourceChange, toInclude func(typ
return res
}
func approvalForUcSchemaDelete(ctx context.Context, b *bundle.Bundle) (bool, error) {
func approvalForDeploy(ctx context.Context, b *bundle.Bundle) (bool, error) {
tf := b.Terraform
if tf == nil {
return false, fmt.Errorf("terraform not initialized")
@ -161,7 +161,7 @@ func Deploy() bundle.Mutator {
terraform.CheckRunningResource(),
terraform.Plan(terraform.PlanGoal("deploy")),
bundle.If(
approvalForUcSchemaDelete,
approvalForDeploy,
deployCore,
bundle.LogString("Deployment cancelled!"),
),