Skip to content

Commit

Permalink
Update src/Credentials/GCECredentials.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Sep 11, 2023
1 parent ca7fb2d commit 6a89d34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Credentials/GCECredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,10 @@ public function getUniverseDomain(callable $httpHandler = null): string
self::getUniverseDomainUri()
);
} catch (ClientException $e) {
return self::DEFAULT_UNIVERSE_DOMAIN;
if ($e->hasResponse() && 404 == $e->getResponse()->getStatusCode()) {
return self::DEFAULT_UNIVERSE_DOMAIN;
}
throw $e;
}

return $this->universeDomain;
Expand Down

0 comments on commit 6a89d34

Please sign in to comment.