mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
Inline many variables.
This commit is contained in:
1 parent
aa7fa16c74
commit
1ec224fde1
20 files changed
+34
-79
No files matched your search
@@ -16,11 +16,10 @@ function collectProxyDockerNetworksByServer(Server $server)
|
||||
return collect();
|
||||
}
|
||||
$networks = instant_remote_process(['docker inspect --format="{{json .NetworkSettings.Networks }}" coolify-proxy'], $server, false);
|
||||
$networks = collect($networks)->map(function ($network) {
|
||||
|
||||
return collect($networks)->map(function ($network) {
|
||||
return collect(json_decode($network))->keys();
|
||||
})->flatten()->unique();
|
||||
|
||||
return $networks;
|
||||
}
|
||||
function collectDockerNetworksByServer(Server $server)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user