Skip to content

Commit 848078c

Browse files
committed
Fix auto-update digest comparison
Since images can have multiple digests, it is better to compare the image ID as that will definitely change on an update and each image can only have one ID. Signed-off-by: Urvashi Mohnani <[email protected]>
1 parent 90867d9 commit 848078c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/autoupdate/autoupdate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (t *task) localUpdateAvailable() (bool, error) {
316316
if err != nil {
317317
return false, err
318318
}
319-
return localImg.Digest().String() != t.image.Digest().String(), nil
319+
return localImg.ID() != t.image.ID(), nil
320320
}
321321

322322
// rollbackImage rolls back the task's image to the previous version before the update.

0 commit comments

Comments
 (0)