From 1e45534942630ace7637336afe7d60e5fa02572a Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Fri, 23 May 2025 09:30:44 +0200 Subject: [PATCH] Changed SSl_ENABLED default false --- CHANGELOG.md | 5 +++++ env.json | 2 +- src/Controller/OgAgent/StatusAction.php | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9016ae9..f57f4cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Changelog +## [0.13.1] - 2025-05-23 +### Fixed +- Variable de entorno "SSl_ENABLED" desactivada por defecto. + +--- ## [0.13.0] - 2025-05-20 ### Added - Se ha creado la base para la comunicacion TLS con el agente. diff --git a/env.json b/env.json index d77f392..b20cad5 100644 --- a/env.json +++ b/env.json @@ -8,6 +8,6 @@ "UDS_AUTH_USERNAME": "test", "UDS_AUTH_PASSWORD": "test", "UDS_URL": "https:\/\/localhost:8087\/uds\/rest\/", - "SSL_ENABLED": "true" + "SSL_ENABLED": "false" } } \ No newline at end of file diff --git a/src/Controller/OgAgent/StatusAction.php b/src/Controller/OgAgent/StatusAction.php index d188bd7..01dcf28 100644 --- a/src/Controller/OgAgent/StatusAction.php +++ b/src/Controller/OgAgent/StatusAction.php @@ -87,7 +87,7 @@ class StatusAction extends AbstractOgAgentController $client->setStatus(ClientStatus::OFF); $this->entityManager->persist($client); $this->entityManager->flush(); - throw new ValidatorException('Error deploying image'); + throw new ValidatorException('Error checking client status: ' . $data['error']); } if (isset($data['cfg'])) { @@ -95,6 +95,7 @@ class StatusAction extends AbstractOgAgentController $this->createPartitionService->__invoke($data, $client); } + $client->setStatus(ClientStatus::OG_LIVE); $this->entityManager->persist($client); $this->entityManager->flush();