From a91ae8680fd72a0689126342da39812c435f8e31 Mon Sep 17 00:00:00 2001 From: "U-RBAMOUSER\\adaszews" Date: Mon, 27 Apr 2020 23:25:52 +0200 Subject: [PATCH] Fix in focker image prune --- focker/image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/focker/image.py b/focker/image.py index cd3b78a..9928cf1 100644 --- a/focker/image.py +++ b/focker/image.py @@ -98,8 +98,9 @@ def command_image_prune(args): again = True while again: again = False - lst = zfs_list(fields=['focker:sha256', 'focker:tags', 'origin', 'name'], - focker_type='image') + fields=['focker:sha256', 'focker:tags', 'origin', 'name'] + lst = zfs_list(fields=fields, focker_type='image') + lst += zfs_list(fields=fields, focker_type='jail') # lst = zfs_parse_output(['zfs', 'list', '-o', 'focker:sha256,focker:tags,origin,name', '-H', '-r', poolname + '/focker/images']) used = set() for r in lst: