IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Fix in focker image prune

tags/0.92
U-RBAMOUSER\adaszews Stanislaw Adaszewski <s.adaszewski@gmail.com> 4 years ago
parent
commit
a91ae8680f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      focker/image.py

+ 3
- 2
focker/image.py View File

@@ -98,8 +98,9 @@ def command_image_prune(args):
again = True again = True
while again: while again:
again = False 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']) # lst = zfs_parse_output(['zfs', 'list', '-o', 'focker:sha256,focker:tags,origin,name', '-H', '-r', poolname + '/focker/images'])
used = set() used = set()
for r in lst: for r in lst:


Loading…
Cancel
Save