From 99757dc93069d7dcd69aed3ac706db5f86e9dda7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 3 Jul 2014 11:30:16 -0700 Subject: [PATCH] terraform: update state when refreshed --- terraform/context.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }