fix
This commit is contained in:
parent
6a599c53d7
commit
fe189da30f
1 changed files with 4 additions and 2 deletions
|
|
@ -416,6 +416,7 @@ private function generate_docker_compose()
|
|||
}
|
||||
private function generate_local_persistent_volumes()
|
||||
{
|
||||
$local_persistent_volumes = [];
|
||||
foreach ($this->application->persistentStorages as $persistentStorage) {
|
||||
$volume_name = $persistentStorage->host_path ?? $persistentStorage->name;
|
||||
if ($this->pull_request_id !== 0) {
|
||||
|
|
@ -424,11 +425,12 @@ private function generate_local_persistent_volumes()
|
|||
$local_persistent_volumes[] = $volume_name . ':' . $persistentStorage->mount_path;
|
||||
}
|
||||
ray('local_persistent_volumes', $local_persistent_volumes);
|
||||
return $local_persistent_volumes ?? [];
|
||||
return $local_persistent_volumes;
|
||||
}
|
||||
|
||||
private function generate_local_persistent_volumes_only_volume_names()
|
||||
{
|
||||
$local_persistent_volumes_names = [];
|
||||
foreach ($this->application->persistentStorages as $persistentStorage) {
|
||||
if ($persistentStorage->host_path) {
|
||||
continue;
|
||||
|
|
@ -444,7 +446,7 @@ private function generate_local_persistent_volumes_only_volume_names()
|
|||
'external' => false,
|
||||
];
|
||||
}
|
||||
return $local_persistent_volumes_names ?? [];
|
||||
return $local_persistent_volumes_names;
|
||||
}
|
||||
private function generate_healthcheck_commands()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue