opentofu/backend
Mitchell Hashimoto 9574f16f92
backend/local: refresh with no config should not crash on input
Fixes #12174

You're allowed to refresh with a nil module (no configs) as long as you
have state. However, if `-input=true` (default) then this would crash
since the input attempts to read the configs.

The API contract with `terraform.Context` says that the module tree must
be non-nil and loaded. To do this for other commands we create an empty
module tree. We do that here now.
2017-02-22 13:10:08 -08:00
..
legacy backend/legacy 2017-01-26 14:33:49 -08:00
local backend/local: refresh with no config should not crash on input 2017-02-22 13:10:08 -08:00
remote-state Add inmem remote backend 2017-02-20 14:49:46 -05:00
backend.go enable local state locking for apply 2017-02-02 18:08:28 -05:00
cli.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
nil_test.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
nil.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operation_type.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operationtype_string.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
testing.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00