RefreshState in output command

This commit is contained in:
Chris Paris 2017-02-16 18:44:43 -08:00
parent d8232314cc
commit 5812bae27f
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 {