Only derive tenant ID if tenant name is supplied.
The Rackspace provider authenticates with username and API key rather than tenant name or ID. Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
This commit is contained in:
parent
db63c28917
commit
e6a591d61f
|
@ -566,7 +566,7 @@ func (d *Driver) resolveIds() error {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.TenantId == "" {
|
if d.TenantName != "" && d.TenantId == "" {
|
||||||
if err := d.initIdentity(); err != nil {
|
if err := d.initIdentity(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue