wrong instance key in test state

This was never picked up by the tests until now
This commit is contained in:
James Bardin 2020-09-16 13:56:08 -04:00
parent 8658424059
commit 312317abd0

View File

@ -830,7 +830,7 @@ func testPlanState_tainted() *states.State {
Mode: addrs.ManagedResourceMode, Mode: addrs.ManagedResourceMode,
Type: "test_instance", Type: "test_instance",
Name: "foo", Name: "foo",
}.Instance(addrs.IntKey(0)), }.Instance(addrs.NoKey),
&states.ResourceInstanceObjectSrc{ &states.ResourceInstanceObjectSrc{
Status: states.ObjectTainted, Status: states.ObjectTainted,
AttrsJSON: []byte(`{ AttrsJSON: []byte(`{