From 7552abed8bcb2d2a05e28ee592d7ddf6a0cd94d0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 13 Feb 2015 18:19:41 -0800 Subject: [PATCH] terraform: fix Refresh func signature --- terraform/context.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/terraform/context.go b/terraform/context.go index 61593d46e..4bda96a95 100644 --- a/terraform/context.go +++ b/terraform/context.go @@ -278,7 +278,7 @@ func (c *Context) Plan(opts *PlanOpts) (*Plan, error) { // // Even in the case an error is returned, the state will be returned and // will potentially be partially updated. -func (c *Context) Refresh() (*State, []error) { +func (c *Context) Refresh() (*State, error) { v := c.acquireRun() defer c.releaseRun(v) @@ -287,8 +287,7 @@ func (c *Context) Refresh() (*State, []error) { // Do the walk if _, err := c.walk(walkRefresh); err != nil { - var errs error - return nil, multierror.Append(errs, err).Errors + return nil, err } // Clean out any unused things