We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenStack\Identity\v3\Service::authenticate vendor/php-opencloud/openstack/src/Identity/v3/Service.php:50
if (!empty($options['cachedToken'])) { $token = $this->generateTokenFromCache($options['cachedToken']); if ($token->hasExpired()) { throw new \RuntimeException(sprintf('Cached token has expired on "%s".', $token->expires->format(\DateTime::ISO8601))); } } else { $token = $this->generateToken($authOptions); } $name = $options['catalogName']; $type = $options['catalogType']; $region = $options['region']; $interface = isset($options['interface']) ? $options['interface'] : Enum::INTERFACE_PUBLIC; if ($baseUrl = $token->catalog->getServiceUrl($name, $type, $region, $interface)) { return [$token, $baseUrl]; } throw new \RuntimeException(sprintf('No service found with type [%s] name [%s] region [%s] interface [%s]', $type, $name, $region, $interface)); } /** * Generates authentication token from cached token using `$token->export()`. * * @param array $cachedToken {@see \OpenStack\Identity\v3\Models\Token::export} */ public function generateTokenFromCache(array $cachedToken): Models\Token { return $this->model(Models\Token::class)->populateFromArray($cachedToken); }
my code:
$compute = $openstack->computeV2(['region' => 'default']); $images = $compute->listImages(['status' => 'ACTIVE']);
The text was updated successfully, but these errors were encountered:
same here
Sorry, something went wrong.
any update?
No branches or pull requests
OpenStack\Identity\v3\Service::authenticate
vendor/php-opencloud/openstack/src/Identity/v3/Service.php:50
my code:
The text was updated successfully, but these errors were encountered: