mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
bug: add error handling for missing state lock config in S3, HTTP and OSS backends (#1977)
Signed-off-by: g0dfl3sh <alex1trendler@gmail.com> Signed-off-by: Alexandru Trendler <117138249+g0dfl3sh@users.noreply.github.com> Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a9d1af85a9
commit
48abc52e46
@@ -469,6 +469,10 @@ func (c *RemoteClient) getSSECustomerKeyMD5() string {
|
||||
return base64.StdEncoding.EncodeToString(b[:])
|
||||
}
|
||||
|
||||
func (c *RemoteClient) IsLockingEnabled() bool {
|
||||
return c.ddbTable != ""
|
||||
}
|
||||
|
||||
const errBadChecksumFmt = `state data in S3 does not have the expected content.
|
||||
|
||||
This may be caused by unusually long delays in S3 processing a previous state
|
||||
|
||||
Reference in New Issue
Block a user