From 27af70eb81d7bd4df1d894f788d78268a105bfb7 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Mon, 12 Aug 2024 16:16:25 +0200 Subject: [PATCH] rename --- bundle/phases/deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/phases/deploy.go b/bundle/phases/deploy.go index 23d14f167..855040a5f 100644 --- a/bundle/phases/deploy.go +++ b/bundle/phases/deploy.go @@ -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!"), ),