core: Add missing OutputStates in synthetic state

In cases where we construct state directly rather than reading it via
the usual methods, we need to ensure that the necessary maps are
initialized correctly.
This commit is contained in:
James Nugent 2016-06-22 17:06:41 +03:00
parent 828efef09e
commit b190aa05a5
2 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,7 @@ func testState() *terraform.State {
},
},
},
Outputs: map[string]*terraform.OutputState{},
},
},
}

View File

@ -499,6 +499,7 @@ func TestContext2Refresh_outputPartial(t *testing.T) {
},
},
},
Outputs: map[string]*OutputState{},
},
},
},