missing attribute now caught after apply

This commit is contained in:
James Bardin 2018-05-29 15:21:00 -04:00 committed by Martin Atkins
parent 36aca84572
commit 41dde5fafc
1 changed files with 1 additions and 0 deletions

View File

@ -5782,6 +5782,7 @@ func TestContext2Apply_outputDiffVars(t *testing.T) {
result := s.MergeDiff(d) result := s.MergeDiff(d)
result.ID = "foo" result.ID = "foo"
result.Attributes["foo"] = "bar"
return result, nil return result, nil
} }
p.DiffFn = func(*InstanceInfo, *InstanceState, *ResourceConfig) (*InstanceDiff, error) { p.DiffFn = func(*InstanceInfo, *InstanceState, *ResourceConfig) (*InstanceDiff, error) {