terraform/backend/remote-state
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
..
artifactory state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
azure state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
consul Fix `terraform force-unlock <lock_id>` for Consul backend 2020-08-13 15:20:24 +02:00
cos state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
etcdv2 state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
etcdv3 state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
gcs state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
http state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
inmem state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
kubernetes state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
manta state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
oss state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
pg state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
s3 state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
swift state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00