From d71d5eb135abfa16cad3e288d70dc2d945d879af Mon Sep 17 00:00:00 2001 From: Oleksander Piskun Date: Wed, 20 Nov 2024 11:41:54 +0300 Subject: [PATCH] fixed important typo that lead to incorrect logic Signed-off-by: Oleksander Piskun --- lib/Controller/DaemonConfigController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/DaemonConfigController.php b/lib/Controller/DaemonConfigController.php index 0541708a..e8624c9c 100644 --- a/lib/Controller/DaemonConfigController.php +++ b/lib/Controller/DaemonConfigController.php @@ -61,11 +61,11 @@ public function updateDaemonConfig(string $name, array $daemonConfigParams): Res $daemonConfig = $this->daemonConfigService->getDaemonConfigByName($name); // Safely check if "haproxy_password" exists before accessing it - $haproxyPassword = $daemonConfigParams['deployConfig']['haproxy_password'] ?? null; + $haproxyPassword = $daemonConfigParams['deploy_config']['haproxy_password'] ?? null; // Restore the original password if "dummySecret123" is provided if ($haproxyPassword === 'dummySecret123') { - $daemonConfigParams['deployConfig']['haproxy_password'] = $daemonConfig->getDeployConfig()['haproxy_password'] ?? ""; + $daemonConfigParams['deploy_config']['haproxy_password'] = $daemonConfig->getDeployConfig()['haproxy_password'] ?? ""; } // Create and update DaemonConfig instance