return state even if cfg is invalid
This commit is contained in:
parent
8c54da0ad2
commit
7edbb3c8bf
|
@ -53,7 +53,7 @@ func testStep(opts terraform.ContextOpts, state *terraform.State, step TestStep,
|
||||||
}
|
}
|
||||||
if stepDiags := ctx.Validate(); len(stepDiags) > 0 {
|
if stepDiags := ctx.Validate(); len(stepDiags) > 0 {
|
||||||
if stepDiags.HasErrors() {
|
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)
|
log.Printf("[WARN] Config warnings:\n%s", stepDiags)
|
||||||
|
|
Loading…
Reference in New Issue