N°9144 Fix target env

This commit is contained in:
Timothee
2026-01-30 10:17:17 +01:00
parent ea44e39b2c
commit 4e769a1836
2 changed files with 63 additions and 29 deletions

View File

@@ -38,7 +38,8 @@ class ModelReflectionSerializer
$sOutput = "";
$iRes = 0;
exec(sprintf("$sPHPExec %s/get_model_reflection.php --env='%s'", __DIR__, $sEnv), $sOutput, $iRes);
$sCommandLine = sprintf("$sPHPExec %s/get_model_reflection.php --env='%s'", __DIR__, $sEnv);
exec($sCommandLine, $sOutput, $iRes);
if ($iRes != 0) {
$this->LogErrorWithProperLogger("Cannot get classes1", null, ['env' => $sEnv, 'code' => $iRes, "output" => $sOutput]);
throw new CoreException("Cannot get classes from env ".$sEnv);