mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 18:01:37 +00:00
Fix aws connect bug (#577)
This commit is contained in:
parent
dda345f565
commit
ff4d560e44
@ -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([
|
||||
|
Loading…
x
Reference in New Issue
Block a user