Fix null check for MINIO_BROWSER_REDIRECT_URL and

MINIO_SERVER_URL in generateServiceSpecificFqdns
function
This commit is contained in:
Andras Bacsai 2023-11-13 11:17:49 +01:00
parent 239459dfa8
commit 9e7823795d

View File

@ -152,13 +152,13 @@ function generateServiceSpecificFqdns($service, $forTraefik = false)
switch ($type) {
case $type->contains('minio'):
$MINIO_BROWSER_REDIRECT_URL = $variables->where('key', 'MINIO_BROWSER_REDIRECT_URL')->first();
if (is_null($MINIO_BROWSER_REDIRECT_URL->value)) {
if (is_null($MINIO_BROWSER_REDIRECT_URL?->value)) {
$MINIO_BROWSER_REDIRECT_URL->update([
"value" => generateFqdn($service->service->server, 'console-' . $service->uuid)
]);
}
$MINIO_SERVER_URL = $variables->where('key', 'MINIO_SERVER_URL')->first();
if (is_null($MINIO_SERVER_URL->value)) {
if (is_null($MINIO_SERVER_URL?->value)) {
$MINIO_SERVER_URL->update([
"value" => generateFqdn($service->service->server, 'minio-' . $service->uuid)
]);