terraform: strict checks for state not being nil

This commit is contained in:
Mitchell Hashimoto 2014-07-22 10:31:47 -07:00
parent 14f7067b0c
commit 10a86c6ef7
1 changed files with 4 additions and 1 deletions

View File

@ -179,7 +179,10 @@ func graphAddConfigResources(
}
// Determine if this resource is tainted
_, tainted := s.Tainted[r.Id()]
tainted := false
if s != nil && s.Tainted != nil {
_, tainted = s.Tainted[r.Id()]
}
var state *ResourceState
if s != nil {