From c47c9cd4405faad936658b9a23e377ebcd7aa715 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 4 Mar 2015 17:09:53 +0000 Subject: [PATCH] swift: add region parameter - fixes #38 --- swift/swift.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swift/swift.go b/swift/swift.go index d93cb68f5..4dfd95ce1 100644 --- a/swift/swift.go +++ b/swift/swift.go @@ -47,6 +47,9 @@ func init() { }, { Name: "tenant", Help: "Tenant name - optional", + }, { + Name: "region", + Help: "Region name - optional", }, // snet = flag.Bool("swift-snet", false, "Use internal service network") // FIXME not implemented }, @@ -115,6 +118,7 @@ func swiftConnection(name string) (*swift.Connection, error) { AuthUrl: authUrl, UserAgent: fs.UserAgent, Tenant: fs.ConfigFile.MustValue(name, "tenant"), + Region: fs.ConfigFile.MustValue(name, "region"), } err := c.Authenticate() if err != nil {