terraform: update state when refreshed

This commit is contained in:
Mitchell Hashimoto 2014-07-03 11:30:16 -07:00
parent d4591c03cc
commit 99757dc930
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ func (c *Context) Refresh() (*State, error) {
s := new(State) s := new(State)
s.init() s.init()
err = g.Walk(c.refreshWalkFn(s)) err = g.Walk(c.refreshWalkFn(s))
// Update our state
c.state = s
return s, err return s, err
} }