Skip to content

Commit

Permalink
Merge pull request #1034 from hebelsan/fix-cleanup
Browse files Browse the repository at this point in the history
Fix error handling
  • Loading branch information
hebelsan committed Aug 22, 2024
2 parents eec4371 + c66e021 commit 2b5725e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/infrastructure/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func generateTerraformerEnvVars(secretRef corev1.SecretReference) []corev1.EnvVa
// CleanupTerraformerResources deletes terraformer artifacts (config, state, secrets).
func CleanupTerraformerResources(ctx context.Context, tf terraformer.Terraformer) error {
if err := tf.EnsureCleanedUp(ctx); err != nil {
return nil
return err
}
if err := tf.CleanupConfiguration(ctx); err != nil {
return err
Expand Down

0 comments on commit 2b5725e

Please sign in to comment.