1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-10 21:33:19 +00:00

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.
This commit is contained in:
Alexandre Lécuyer
2020-05-05 23:09:28 +02:00
parent 51cbf73caa
commit dae040681d

View File

@@ -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