mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
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
|
||||
}
|
||||
|
||||
if err := stateStore.RefreshState(); err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Failed to load state: %s", err))
|
||||
return 1
|
||||
}
|
||||
|
||||
if module == "" {
|
||||
module = "root"
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user