mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 07:03:16 -06:00
6aa5fdc938
Atlas returns an HTTP 409 - Conflict if the pushed state reports the same Serial number but the checksum of the raw content differs. This can sometimes happen when Terraform changes state representation internally between versions in a way that's semantically neutral but affects the JSON output and therefore the checksum. Here we detect and handle this situation by ticking the serial and retrying iff for the previous state and the proposed state: * the serials match * the parsed states are Equal (semantically equivalent) In other words, in this situation Terraform can override Atlas's detected conflict by asserting that the state it is pushing is indeed correct. |
||
---|---|---|
.. | ||
atlas_test.go | ||
atlas.go | ||
client_inmem.go | ||
consul_test.go | ||
consul.go | ||
etcd_test.go | ||
etcd.go | ||
file_test.go | ||
file.go | ||
http_test.go | ||
http.go | ||
remote_test.go | ||
remote.go | ||
s3_test.go | ||
s3.go | ||
state_test.go | ||
state.go | ||
swift_test.go | ||
swift.go |