From ff4d560e449cbc613b95648cf22659b7650d2857 Mon Sep 17 00:00:00 2001 From: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com> Date: Sat, 5 Apr 2025 23:50:12 +0200 Subject: [PATCH] Fix aws connect bug (#577) --- app/ServerProviders/AWS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ServerProviders/AWS.php b/app/ServerProviders/AWS.php index e2ca04b..b1f532c 100755 --- a/app/ServerProviders/AWS.php +++ b/app/ServerProviders/AWS.php @@ -186,7 +186,7 @@ private function connectToEc2Client(?string $region = null): void $credentials = $this->serverProvider->getCredentials(); if ($region === null || $region === '' || $region === '0') { - $region = $this->server->provider_data['region']; + $region = $this->server->provider_data['region'] ?? null; } $this->ec2Client = new Ec2Client([