refactor: Improve environment variable handling in shared.php

This commit is contained in:
Andras Bacsai
2024-09-09 10:16:12 +02:00
parent 40347744e0
commit 84093afaf6

View File

@@ -3074,7 +3074,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
$fqdnFor = null;
}
// Lets save the magic value to the environment variables
if (! $originalValue->startsWith('/')) {
if ($key->startsWith('SERVICE_')) {
$originalValue = $key;
}
@@ -3090,7 +3089,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
}
}
}
}
// Parse the rest of the services
foreach ($services as $serviceName => $service) {