Browse Source

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>
Ash Wilson 3 years ago
parent
commit
e6a591d61f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      drivers/openstack/openstack.go

+ 1
- 1
drivers/openstack/openstack.go View File

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

Loading…
Cancel
Save