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:
Ash Wilson 2016-01-11 13:45:42 -05:00
parent db63c28917
commit e6a591d61f
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ func (d *Driver) resolveIds() error {
})
}
if d.TenantId == "" {
if d.TenantName != "" && d.TenantId == "" {
if err := d.initIdentity(); err != nil {
return err
}