terraform: strict checks for state not being nil
This commit is contained in:
parent
14f7067b0c
commit
10a86c6ef7
|
@ -179,7 +179,10 @@ func graphAddConfigResources(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine if this resource is tainted
|
// 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
|
var state *ResourceState
|
||||||
if s != nil {
|
if s != nil {
|
||||||
|
|
Loading…
Reference in New Issue