mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 15:11:56 +01:00
swift: add region parameter - fixes #38
This commit is contained in:
parent
b4a0941d4c
commit
c47c9cd440
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user