We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d440a44 commit 4ed8a55Copy full SHA for 4ed8a55
lib/openstack.inc
@@ -301,7 +301,14 @@ ENDAUTHTEMPLATE
301
return FALSE;
302
$this->token = $resp->access->token->id;
303
$this->expiration = strtotime($resp->access->token->expires);
304
- $this->tenant = $resp->access->token->tenant->id;
+ /**
305
+ * In some cases, the tenant name/id is not returned
306
+ * as part of the auth token, so we check for it before
307
+ * we set it. This occurs with pure Keystone, but not
308
+ * with the Rackspace auth.
309
+ */
310
+ if (isset($resp->access->token->tenant))
311
+ $this->tenant = $resp->access->token->tenant->id;
312
/**
313
* Note the different capitalization; I'm trying to use CamelCase
314
* consistently in these bindings, but the actual serviceCatalog is
0 commit comments