Merge pull request #12031 from ChrisParis/output-refresh-state

RefreshState in output command
This commit is contained in:
Mitchell Hashimoto 2017-02-17 08:35:40 -08:00 committed by GitHub
commit 0f058b661b
1 changed files with 5 additions and 0 deletions

View File

@ -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 {