fix: 0 in env value

This commit is contained in:
Andras Bacsai 2024-03-18 11:49:26 +01:00
parent 76f7cd08ee
commit a185787044
2 changed files with 1 additions and 2 deletions

View File

@ -1413,7 +1413,6 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
$environment_variables->push("SOURCE_COMMIT=unknown"); $environment_variables->push("SOURCE_COMMIT=unknown");
} }
} }
ray($environment_variables->all());
return $environment_variables->all(); return $environment_variables->all();
} }

View File

@ -108,7 +108,7 @@ class EnvironmentVariable extends Model
} }
private function get_real_environment_variables(?string $environment_variable = null, $resource = null) private function get_real_environment_variables(?string $environment_variable = null, $resource = null)
{ {
if (!$environment_variable || !$resource) { if ((is_null($environment_variable) && $environment_variable == '') || is_null($resource)) {
return null; return null;
} }
$environment_variable = trim($environment_variable); $environment_variable = trim($environment_variable);