mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-01 11:47:07 -06:00
core: fix panic in TestContext2Apply_resourceDependsOnModuleDestroy
This panic is likely caused by a bug, since "ami" should always be set, but we'll fix the panic first to allow the tests to run to completion.
This commit is contained in:
parent
64eb5f732c
commit
934dd8f710
@ -408,7 +408,7 @@ func TestContext2Apply_resourceDependsOnModuleDestroy(t *testing.T) {
|
||||
is *InstanceState,
|
||||
id *InstanceDiff) (*InstanceState, error) {
|
||||
|
||||
if id.Attributes["ami"].New == "parent" {
|
||||
if id.Attributes["ami"] != nil && id.Attributes["ami"].New == "parent" {
|
||||
checked = true
|
||||
|
||||
// Sleep to allow parallel execution
|
||||
|
Loading…
Reference in New Issue
Block a user