diff --git a/terraform/context.go b/terraform/context.go index ae964aabe..44a3e2c10 100644 --- a/terraform/context.go +++ b/terraform/context.go @@ -164,6 +164,10 @@ func (c *Context) Refresh() (*State, error) { s := new(State) s.init() err = g.Walk(c.refreshWalkFn(s)) + + // Update our state + c.state = s + return s, err }