refactoring

This commit is contained in:
Saeed Vaziry
2023-08-04 18:28:04 +02:00
parent 8444323cf4
commit 643318fcfc
349 changed files with 3189 additions and 2729 deletions

View File

@ -6,6 +6,7 @@
use App\Exceptions\ServerProviderError;
use App\Notifications\FailedToDeleteServerFromProvider;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class Linode extends AbstractProvider
{
@ -103,6 +104,7 @@ public function create(): void
if (count($errors) > 0) {
$msg = $errors[0]['reason'];
}
Log::error("Linode error", $errors);
throw new ServerProviderError($msg);
}
$this->server->ip = $create->json()['ipv4'][0];