extend application put api

This commit is contained in:
Andras Bacsai
2024-06-25 21:22:23 +02:00
parent 0964c7a338
commit eb76d63117
2 changed files with 113 additions and 7 deletions

View File

@@ -1907,8 +1907,6 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
'networks' => $topLevelNetworks->toArray(),
];
if ($isSameDockerComposeFile) {
$resource->docker_compose_pr_raw = Yaml::dump($yaml, 10, 2);
$resource->docker_compose_pr = Yaml::dump($finalServices, 10, 2);
$resource->docker_compose_raw = Yaml::dump($yaml, 10, 2);
$resource->docker_compose = Yaml::dump($finalServices, 10, 2);
} else {
@@ -2316,3 +2314,8 @@ function generateSentinelToken()
return $token;
}
function isBase64Encoded($strValue)
{
return base64_encode(base64_decode($strValue, true)) === $strValue;
}