From df9b2913ae8446334380da41487d020fc0071e74 Mon Sep 17 00:00:00 2001 From: stack72 Date: Tue, 3 Apr 2018 17:32:10 +0300 Subject: [PATCH] backend/manta: Add support for manta backend tiered path structure This was already added to triton-go and is now making its way to the manta backend ``` % acctests backend/remote-state/manta === RUN TestBackend_impl --- PASS: TestBackend_impl (0.00s) === RUN TestBackend --- PASS: TestBackend (27.36s) === RUN TestBackendLocked --- PASS: TestBackendLocked (16.24s) === RUN TestRemoteClient_impl --- PASS: TestRemoteClient_impl (0.00s) === RUN TestRemoteClient --- PASS: TestRemoteClient (3.40s) === RUN TestRemoteClientLocks --- PASS: TestRemoteClientLocks (7.17s) PASS ok github.com/hashicorp/terraform/backend/remote-state/manta ``` --- backend/remote-state/manta/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/remote-state/manta/client.go b/backend/remote-state/manta/client.go index 841bd0f28..4f8899359 100644 --- a/backend/remote-state/manta/client.go +++ b/backend/remote-state/manta/client.go @@ -141,6 +141,7 @@ func (c *RemoteClient) Lock(info *state.LockInfo) (string, error) { ContentLength: uint64(contentLength), ObjectPath: path.Join(mantaDefaultRootStore, c.directoryName, lockFileName), ObjectReader: bytes.NewReader(data), + ForceInsert: true, } log.Printf("[DEBUG] Creating manta state lock: %#v", params)