From dae040681da7d624e82d995956799472d52043a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20L=C3=A9cuyer?= Date: Tue, 5 May 2020 23:09:28 +0200 Subject: [PATCH] Call Authenticate() before using Swift storage Failing to call Authenticate() before using the swift connection will cause a panic in recent versions of the swift library. --- src/duplicacy_swiftstorage.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/duplicacy_swiftstorage.go b/src/duplicacy_swiftstorage.go index 3d36057..da5eeed 100644 --- a/src/duplicacy_swiftstorage.go +++ b/src/duplicacy_swiftstorage.go @@ -129,6 +129,11 @@ func CreateSwiftStorage(storageURL string, key string, threads int) (storage *Sw TrustId: arguments["trust_id"], } + err = connection.Authenticate() + if err != nil { + return nil, err + } + _, _, err = connection.Container(container) if err != nil { return nil, err