From 5812bae27f35d6812805fb9759ec3af89f42e156 Mon Sep 17 00:00:00 2001 From: Chris Paris Date: Thu, 16 Feb 2017 18:44:43 -0800 Subject: [PATCH] RefreshState in output command --- command/output.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command/output.go b/command/output.go index 627b0dcb9..2b12dee62 100644 --- a/command/output.go +++ b/command/output.go @@ -57,6 +57,11 @@ func (c *OutputCommand) Run(args []string) int { return 1 } + if err := stateStore.RefreshState(); err != nil { + c.Ui.Error(fmt.Sprintf("Failed to load state: %s", err)) + return 1 + } + if module == "" { module = "root" } else {