Skip to content

Commit

Permalink
look for image digest in alternative location if not found in primary…
Browse files Browse the repository at this point in the history
… location
  • Loading branch information
ryecoaaron committed Sep 22, 2023
1 parent 188d76a commit 1ee35c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions usr/share/openmediavault/engined/rpc/compose.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1495,13 +1495,17 @@ class OMVRpcServiceCompose extends \OMV\Rpc\ServiceAbstract
} else {
if (isset($data['digest'])) {
$newest = $data['digest'];
} elseif (isset($data['images'])) {
$newest = $data['images'][0]['digest'];
}
}
}
if ($digest != $newest) {
return 'AVAILABLE';
if ($newest == '') {
return 'FAILED';
} elseif ($digest != $newest) {
return 'AVAILABLE';
} else {
return 'CURRENT';
return 'CURRENT';
}
}

Expand Down

0 comments on commit 1ee35c4

Please sign in to comment.