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 for the missing tag case

tags/0.92
parent
commit
16687d157e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      zfs.py

+ 1
- 0
zfs.py View File

@@ -78,6 +78,7 @@ def zfs_tag(name, tags, replace=False):
tags = list(tags) tags = list(tags)
tags.extend(lst[0][0].split(' ')) tags.extend(lst[0][0].split(' '))
tags = list(set(tags)) tags = list(set(tags))
tags = list(filter(lambda a: a != '-', tags))
if len(tags) > 0: if len(tags) > 0:
zfs_run(['zfs', 'set', 'focker:tags=' + ' '.join(tags), name]) zfs_run(['zfs', 'set', 'focker:tags=' + ' '.join(tags), name])
else: else:


Loading…
Cancel
Save