refactor: work with new docker lib
All checks were successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/arch Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/man Pipeline was successful
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Jef Roosens 2023-01-05 17:05:25 +01:00
parent b5ff50066b
commit 5176266ca1
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@ fn (mut m ImageManager) clean_old_images() {
// wasn't deleted. Therefore, we move the index over. If the function
// returns true, the array's length has decreased by one so we don't
// move the index.
dd.remove_image(m.images[image][i]) or {
dd.image_remove(m.images[image][i]) or {
// The image was removed by an external event
if err.code() == 404 {
m.images[image].delete(i)