Merge pull request #7148 from hashicorp/b-show-crash-with-tainted

core: Fix crash with tainted resource
This commit is contained in:
James Nugent 2016-06-13 10:38:36 +01:00 committed by GitHub
commit 3e8d5eed06
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func formatStateModuleExpand(
}
taintStr := ""
if rs.Primary.Tainted {
if rs.Primary != nil && rs.Primary.Tainted {
taintStr = " (tainted)"
}