mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
fix DO api connect (#623)
This commit is contained in:
@ -55,7 +55,7 @@ public function data(array $input): array
|
|||||||
public function connect(array $credentials): bool
|
public function connect(array $credentials): bool
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$connect = Http::withToken($credentials['token'])->get($this->apiUrl.'/account');
|
$connect = Http::withToken($credentials['token'])->get($this->apiUrl.'/droplets');
|
||||||
} catch (Exception) {
|
} catch (Exception) {
|
||||||
throw new CouldNotConnectToProvider('DigitalOcean');
|
throw new CouldNotConnectToProvider('DigitalOcean');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user