terraform/command/clistate
Graham Hargreaves e9394dfb38
command/clistate: Return an error on unlock failure (#25729)
* Return an error on unlock failure

When the lock can't be released return the err even if there is no previous error with the current action. This allows faster failure in CI/CD systems. Without this failure to remove the lock would result in the failure happening on a subsequent plan or apply which slows down the feedback loop in automated systems.

* Update command/clistate/state.go

Accept review suggestion

Co-authored-by: ZymoticB <ZymoticB@users.noreply.github.com>

* add test

Co-authored-by: ZymoticB <ZymoticB@users.noreply.github.com>
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com>
2020-09-03 16:05:16 -04:00
..
local_state.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
local_state_lock_unix.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
local_state_lock_windows.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
state.go command/clistate: Return an error on unlock failure (#25729) 2020-09-03 16:05:16 -04:00
state_test.go command/clistate: Return an error on unlock failure (#25729) 2020-09-03 16:05:16 -04:00