Fix aws connect bug (#577)

This commit is contained in:
Saeed Vaziry 2025-04-05 23:50:12 +02:00 committed by GitHub
parent dda345f565
commit ff4d560e44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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([