summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 18:30:25 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 18:30:25 +0100
commit581cefb68323828cb536b5584bf3859895dbba27 (patch)
treee6b2a86c3ce01f3b8d21eb830067af8d0e07edd0 /modules
parent8212379d03ed69326dc17d649f2f2ea0cd0ddf56 (diff)
downloadnixos-581cefb68323828cb536b5584bf3859895dbba27.tar
nixos-581cefb68323828cb536b5584bf3859895dbba27.tar.gz
nixos-581cefb68323828cb536b5584bf3859895dbba27.tar.bz2
nixos-581cefb68323828cb536b5584bf3859895dbba27.tar.xz
nixos-581cefb68323828cb536b5584bf3859895dbba27.zip
zfssnap: ...
Diffstat (limited to 'modules')
-rw-r--r--modules/zfssnap/zfssnap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py
index 9a536258..597b7f04 100644
--- a/modules/zfssnap/zfssnap.py
+++ b/modules/zfssnap/zfssnap.py
@@ -55,7 +55,7 @@ def _get_items():
55def prune(config, dry_run, keep_newest): 55def prune(config, dry_run, keep_newest):
56 items = defaultdict(list) 56 items = defaultdict(list)
57 57
58 Snap = namedtuple(Snap, ['name', 'creation']) 58 Snap = namedtuple('Snap', ['name', 'creation'])
59 args = ['zfs', 'get', '-H', '-p', '-o', 'name,value', '-t', 'snapshot', 'creation'] 59 args = ['zfs', 'get', '-H', '-p', '-o', 'name,value', '-t', 'snapshot', 'creation']
60 _log_cmd(*args) 60 _log_cmd(*args)
61 with subprocess.Popen(args, stdout=subprocess.PIPE) as proc: 61 with subprocess.Popen(args, stdout=subprocess.PIPE) as proc: