Merge pull request #12031 from ChrisParis/output-refresh-state
RefreshState in output command
This commit is contained in:
commit
0f058b661b
|
@ -57,6 +57,11 @@ func (c *OutputCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := stateStore.RefreshState(); err != nil {
|
||||||
|
c.Ui.Error(fmt.Sprintf("Failed to load state: %s", err))
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
if module == "" {
|
if module == "" {
|
||||||
module = "root"
|
module = "root"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue