Docker: Fix: show docker updates as 'available' instead of 'unknown' when upgrading from 6.1 to 6.2

This commit is contained in:
Eric Schultz
2015-12-16 13:43:06 -08:00
parent 1e2844a361
commit b54990b00a
2 changed files with 5 additions and 3 deletions
@@ -466,7 +466,7 @@ class DockerUpdate{
// Add :latest tag to image if it's absent
$image = ($image && count(preg_split("#[:\/]#", $image)) < 3) ? "${image}:latest" : $image;
if(isset($updateStatus[$image])) {
if ($updateStatus[$image]['local'] && $updateStatus[$image]['remote']) {
if ($updateStatus[$image]['local'] || $updateStatus[$image]['remote']) {
return ($updateStatus[$image]['local'] == $updateStatus[$image]['remote']) ? true : false;
}
}