Add domain option for openstack (v3 auth)
This commit is contained in:
parent
8af68e779f
commit
640d7bd365
2 changed files with 6 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue