Skip to content

Commit

Permalink
fix: actually exit the func in dryRun mode
Browse files Browse the repository at this point in the history
  • Loading branch information
linki committed May 9, 2018
1 parent 8e5404d commit f7ab7ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ func updateStack(svc cloudformationiface.CloudFormationAPI, client clientset.Int

if dryRun {
fmt.Println("skipping...")
return
}

params := []*cloudformation.Parameter{}
Expand Down Expand Up @@ -318,6 +319,7 @@ func deleteStack(svc cloudformationiface.CloudFormationAPI, stack *cloudformatio

if dryRun {
fmt.Println("skipping...")
return
}

input := &cloudformation.DeleteStackInput{
Expand Down

0 comments on commit f7ab7ce

Please sign in to comment.