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 := 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue