-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add error wrapping for locked state (#221)
* add error wrapping for locked state * use strings.Builder instead of bytes.Buffer * parse date for LockInfo created field * revert date parsing; fix LockInfo regexp * add test for StateLockErr; update build tags * replace build tags * Update tfexec/exit_errors.go Co-authored-by: Radek Simko <radek.simko@gmail.com>
- Loading branch information
1 parent
9230b19
commit a0da02b
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tfexec/internal/e2etest/testdata/inmem-backend-locked/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
terraform { | ||
backend "inmem" { | ||
lock_id = "2b6a6738-5dd5-50d6-c0ae-f6352977666b" | ||
} | ||
} |