diff --git a/docs/content/swift.md b/docs/content/swift.md index 113078544..cb9fcbde4 100644 --- a/docs/content/swift.md +++ b/docs/content/swift.md @@ -81,6 +81,8 @@ region> Storage URL - optional storage_url> Remote config +AuthVersion - optional - set to (1,2,3) if your auth URL has no version +auth_version> -------------------- [remote] user = user_name diff --git a/swift/swift.go b/swift/swift.go index e652eef2c..bebb7d00a 100644 --- a/swift/swift.go +++ b/swift/swift.go @@ -73,6 +73,9 @@ func init() { }, { Name: "storage_url", Help: "Storage URL - optional", + }, { + Name: "auth_version", + Help: "AuthVersion - optional - set to (1,2,3) if your auth URL has no version", }, }, }) @@ -155,6 +158,7 @@ func swiftConnection(name string) (*swift.Connection, error) { UserName: userName, ApiKey: apiKey, AuthUrl: authURL, + AuthVersion: fs.ConfigFile.MustInt(name, "auth_version", 0), UserAgent: fs.UserAgent, Tenant: fs.ConfigFile.MustValue(name, "tenant"), Region: fs.ConfigFile.MustValue(name, "region"),