Passing DomainID/DomainName to AuthOptions

To be able to use Domains with IdentityV3, domain-id/domain-name in provider config should be passed to gophercloud.AuthOptions
This commit is contained in:
Sebastien LAWNICZAK 2015-12-01 23:12:25 +01:00
parent 727412c5ce
commit 3eae5895f8

View File

@ -134,6 +134,8 @@ func (cfg Config) toAuthOptions() gophercloud.AuthOptions {
APIKey: cfg.Global.ApiKey,
TenantID: cfg.Global.TenantId,
TenantName: cfg.Global.TenantName,
DomainID: cfg.Global.DomainId,
DomainName: cfg.Global.DomainName,
// Persistent service, so we need to be able to renew tokens.
AllowReauth: true,