Fix null check for MINIO_BROWSER_REDIRECT_URL and
MINIO_SERVER_URL in generateServiceSpecificFqdns function
This commit is contained in:
parent
239459dfa8
commit
9e7823795d
@ -152,13 +152,13 @@ function generateServiceSpecificFqdns($service, $forTraefik = false)
|
|||||||
switch ($type) {
|
switch ($type) {
|
||||||
case $type->contains('minio'):
|
case $type->contains('minio'):
|
||||||
$MINIO_BROWSER_REDIRECT_URL = $variables->where('key', 'MINIO_BROWSER_REDIRECT_URL')->first();
|
$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([
|
$MINIO_BROWSER_REDIRECT_URL->update([
|
||||||
"value" => generateFqdn($service->service->server, 'console-' . $service->uuid)
|
"value" => generateFqdn($service->service->server, 'console-' . $service->uuid)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
$MINIO_SERVER_URL = $variables->where('key', 'MINIO_SERVER_URL')->first();
|
$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([
|
$MINIO_SERVER_URL->update([
|
||||||
"value" => generateFqdn($service->service->server, 'minio-' . $service->uuid)
|
"value" => generateFqdn($service->service->server, 'minio-' . $service->uuid)
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user