diff --git a/terraform/context_test.go b/terraform/context_test.go index a81f8ff2a..32b2e5068 100644 --- a/terraform/context_test.go +++ b/terraform/context_test.go @@ -296,8 +296,12 @@ func testDiffFn( if k == "id" { continue } + old := "" + if s != nil { + old = s.Attributes[k] + } diff.Attributes[k] = &ResourceAttrDiff{ - Old: "", + Old: old, NewComputed: true, } }