Skip to content

Commit b2caac3

Browse files
committed
Fallback to use same papi host as terminus host if sandbox.
1 parent 8f4e7e9 commit b2caac3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SecretsApi/SecretsApi.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ private function getBaseURI()
3232
if (!$host && strpos($config->get('host'), 'hermes.sandbox-') !== false) {
3333
$host = str_replace('hermes', 'pantheonapi', $config->get('host'));
3434
}
35+
if (!$host && strpos($config->get('host'), 'sandbox-') !== false) {
36+
$host = $config->get('host');
37+
}
3538
// If host is still not set, use the default host.
3639
if (!$host) {
3740
$host = 'api.pantheon.io';

0 commit comments

Comments
 (0)