Add domain option for openstack (v3 auth)

This commit is contained in:
Fabian Ruff 2016-04-21 01:00:49 +02:00 committed by Nick Craig-Wood
parent 8af68e779f
commit 640d7bd365
2 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,8 @@ Choose a number from below, or type in your own value
6 / OVH
\ "https://auth.cloud.ovh.net/v2.0"
auth> 1
User domain - optional (v3 auth)
domain> Default
Tenant name - optional
tenant>
Region name - optional

View File

@ -61,6 +61,9 @@ func init() {
Help: "OVH",
Value: "https://auth.cloud.ovh.net/v2.0",
}},
}, {
Name: "domain",
Help: "User domain - optional (v3 auth)",
}, {
Name: "tenant",
Help: "Tenant name - optional",
@ -155,6 +158,7 @@ func swiftConnection(name string) (*swift.Connection, error) {
UserAgent: fs.UserAgent,
Tenant: fs.ConfigFile.MustValue(name, "tenant"),
Region: fs.ConfigFile.MustValue(name, "region"),
Domain: fs.ConfigFile.MustValue(name, "domain"),
ConnectTimeout: 10 * fs.Config.ConnectTimeout, // Use the timeouts in the transport
Timeout: 10 * fs.Config.Timeout, // Use the timeouts in the transport
Transport: fs.Config.Transport(),