Skip to content

Commit

Permalink
disable refresh when execute destroy so config validation error won't…
Browse files Browse the repository at this point in the history
… block destroy
  • Loading branch information
lonegunmanb committed Dec 30, 2022
1 parent 3ed5b08 commit 100c98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2etest.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func destroy(t *testing.T, option terraform.Options) {
option.RetryableTerraformErrors = map[string]string{
".*": "Retry destroy on any error",
}
terraform.Destroy(t, &option)
terraform.RunTerraformCommand(t, &option, terraform.FormatArgs(&option, "destroy", "-auto-approve", "-input=false", "-refresh=false")...)
}

func removeLogger(option terraform.Options) *terraform.Options {
Expand Down

0 comments on commit 100c98b

Please sign in to comment.