Fixed bugs in deployImage. Chaged status timeout
parent
9089224522
commit
ba8cdf81f7
|
@ -43,12 +43,10 @@ class DeployImageAction extends AbstractController
|
||||||
{
|
{
|
||||||
$image = $imageImageRepository->getImage();
|
$image = $imageImageRepository->getImage();
|
||||||
|
|
||||||
if (!$image->getClient()->getIp()) {
|
if (!$client->getIp()) {
|
||||||
throw new ValidatorException('IP is required');
|
throw new ValidatorException('IP is required');
|
||||||
}
|
}
|
||||||
|
|
||||||
$partitionInfo = json_decode($image->getPartitionInfo(), true);
|
|
||||||
|
|
||||||
$method = match ($input->method) {
|
$method = match ($input->method) {
|
||||||
DeployMethodTypes::MULTICAST_UFTP_DIRECT, DeployMethodTypes::MULTICAST_UDPCAST_DIRECT, => 'multicast-direct',
|
DeployMethodTypes::MULTICAST_UFTP_DIRECT, DeployMethodTypes::MULTICAST_UDPCAST_DIRECT, => 'multicast-direct',
|
||||||
DeployMethodTypes::MULTICAST, DeployMethodTypes::MULTICAST_UFTP, DeployMethodTypes::MULTICAST_UDPCAST => 'multicast',
|
DeployMethodTypes::MULTICAST, DeployMethodTypes::MULTICAST_UFTP, DeployMethodTypes::MULTICAST_UDPCAST => 'multicast',
|
||||||
|
|
|
@ -74,7 +74,7 @@ class StatusAction extends AbstractController
|
||||||
$response = $this->httpClient->request('POST', 'https://' . $client->getIp() . ':8000/ogAdmClient/status', [
|
$response = $this->httpClient->request('POST', 'https://' . $client->getIp() . ':8000/ogAdmClient/status', [
|
||||||
'verify_peer' => false,
|
'verify_peer' => false,
|
||||||
'verify_host' => false,
|
'verify_host' => false,
|
||||||
'timeout' => 10,
|
'timeout' => 30,
|
||||||
'headers' => [
|
'headers' => [
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue