Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from cloudnautique/cdk_delete_fixes
Browse files Browse the repository at this point in the history
Fix variable assignment
  • Loading branch information
cloudnautique authored Aug 22, 2023
2 parents ad3ed80 + 019df05 commit 8161084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/cdk-runner/pkg/aws/cloudformation/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Delete(c *Client, stackName string) error {
return err
}

stack, err := GetStack(c, stackName)
err = stack.Refresh(c)
if err != nil && stack.Exists {
return err
} else if !stack.Exists {
Expand Down
3 changes: 1 addition & 2 deletions utils/cdk-runner/pkg/cdk/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/acorn-io/aws/utils/cdk-runner/pkg/aws/utils"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/ec2"
"github.com/sirupsen/logrus"
)

type CdkContext struct {
Expand Down Expand Up @@ -52,7 +51,7 @@ func (ctx *CdkContext) AddPlugin(p PluginProvider) {
func (ctx *CdkContext) ClientReady() error {
timeOutCtx, cancel := context.WithTimeout(ctx.Context, time.Second*30)
defer cancel()
logrus.Infof("Checking EC2 client is ready..")

for {
select {
case <-timeOutCtx.Done():
Expand Down

0 comments on commit 8161084

Please sign in to comment.