From 7edbb3c8bf89b1daa26184654b60369ab4302d2d Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Fri, 2 Nov 2018 12:20:51 -0700 Subject: [PATCH] return state even if cfg is invalid --- helper/resource/testing_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/resource/testing_config.go b/helper/resource/testing_config.go index c8cc587bd..9bf04cb59 100644 --- a/helper/resource/testing_config.go +++ b/helper/resource/testing_config.go @@ -53,7 +53,7 @@ func testStep(opts terraform.ContextOpts, state *terraform.State, step TestStep, } if stepDiags := ctx.Validate(); len(stepDiags) > 0 { if stepDiags.HasErrors() { - return nil, errwrap.Wrapf("config is invalid: {{err}}", stepDiags.Err()) + return state, errwrap.Wrapf("config is invalid: {{err}}", stepDiags.Err()) } log.Printf("[WARN] Config warnings:\n%s", stepDiags)