RefreshState in output command
This commit is contained in:
parent
d8232314cc
commit
5812bae27f
|
@ -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