Merge pull request #7148 from hashicorp/b-show-crash-with-tainted
core: Fix crash with tainted resource
This commit is contained in:
commit
3e8d5eed06
|
@ -111,7 +111,7 @@ func formatStateModuleExpand(
|
|||
}
|
||||
|
||||
taintStr := ""
|
||||
if rs.Primary.Tainted {
|
||||
if rs.Primary != nil && rs.Primary.Tainted {
|
||||
taintStr = " (tainted)"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue