terraform: update state when refreshed
This commit is contained in:
parent
d4591c03cc
commit
99757dc930
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue