terraform/backend
Rémi Lapeyre 11eb88753d Fix `terraform force-unlock <lock_id>` for Consul backend
When locking was enabled with the Consul backend and the lock not properly
released, the `terraform force-unlock <lock_id>` command would do nothing as
its implementation would exit early in that case.

It now destroys the session that created the lock and clean both the lock and
the lock-info keys.

A regression test is added to TestConsul_destroyLock() to catch the issue if it
happends again.

Closes https://github.com/hashicorp/terraform/issues/22174
2020-08-13 15:20:24 +02:00
..
atlas state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
init Add kubernetes backend 2020-06-04 02:29:57 -04:00
local Merge pull request #25779 from hashicorp/jbardin/remove-state-attrs 2020-08-12 10:49:44 -04:00
remote state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
remote-state Fix `terraform force-unlock <lock_id>` for Consul backend 2020-08-13 15:20:24 +02:00
backend.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
cli.go backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
nil.go Change backend.ValidateConfig to PrepareConfig 2019-02-25 18:37:20 -05:00
nil_test.go
operation_type.go Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
operationtype_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
testing.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
unparsed_value.go Avoid leaking sensitive values in undeclared warnings 2019-11-05 17:32:57 -08:00
unparsed_value_test.go backend/local: Handle interactive prompts for variables in UI layer 2019-10-10 10:07:01 -07:00