Skip to content

Commit

Permalink
Fix bug with standalone 3.0.3 hosts not showing containers (close #
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle0x1 committed Nov 18, 2019
1 parent 067d815 commit 275e5b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ You should only upgrade when a new version is tagged,
Restarting the `pm2` and `apache2` process may interupt running process please
be careful when upgrading!

## 0.5.0 -> 0.5.1

```
cd /var/www/LxdMosaic
git fetch
git checkout 0.5.1
git pull
```

## 0.4.0 -> 0.5.0

The upgrade path is as follows for both ubuntu & centos
Expand Down
7 changes: 4 additions & 3 deletions src/classes/Tools/Containers/GetHostsContainers.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ private function addContainersStateAndInfo($client, $containers)
foreach ($containers as $container) {
$state = $client->containers->state($container);
$info = $client->containers->info($container);

if ($info["location"] !== "none" && $info["location"] !== $hostInfo["environment"]["server_name"]) {
continue;
if ($info["location"] !== "") {
if ($info["location"] !== "none" && $info["location"] !== $hostInfo["environment"]["server_name"]) {
continue;
}
}

$details[$container] = [
Expand Down

0 comments on commit 275e5b5

Please sign in to comment.