mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
Block a user