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 @@ private function generate_environment_variables($ports)
$environment_variables->push("SOURCE_COMMIT=unknown");
}
}
ray($environment_variables->all());
return $environment_variables->all();
}

View File

@ -108,7 +108,7 @@ protected function isShared(): Attribute
}
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;
}
$environment_variable = trim($environment_variable);