mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
cli: Restore -lock and -lock-timeout init flags
The -lock and -lock-timeout flags were removed prior to the release of 1.0 as they were thought to have no effect. This is not true in the case of state migrations when changing backends. This commit restores these flags, and adds test coverage for locking during backend state migration. Also update the help output describing other boolean flags, showing the argument as the user would type it rather than the default behavior.
This commit is contained in:
5
internal/command/testdata/init-backend-migrate-while-locked/main.tf
vendored
Normal file
5
internal/command/testdata/init-backend-migrate-while-locked/main.tf
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
terraform {
|
||||
backend "local" {
|
||||
path = "local-state.tfstate"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user