diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 18:30:25 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 18:30:25 +0100 |
commit | 581cefb68323828cb536b5584bf3859895dbba27 (patch) | |
tree | e6b2a86c3ce01f3b8d21eb830067af8d0e07edd0 /modules/zfssnap | |
parent | 8212379d03ed69326dc17d649f2f2ea0cd0ddf56 (diff) | |
download | nixos-581cefb68323828cb536b5584bf3859895dbba27.tar nixos-581cefb68323828cb536b5584bf3859895dbba27.tar.gz nixos-581cefb68323828cb536b5584bf3859895dbba27.tar.bz2 nixos-581cefb68323828cb536b5584bf3859895dbba27.tar.xz nixos-581cefb68323828cb536b5584bf3859895dbba27.zip |
zfssnap: ...
Diffstat (limited to 'modules/zfssnap')
-rw-r--r-- | modules/zfssnap/zfssnap.py | 2 |
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(): | |||
55 | def prune(config, dry_run, keep_newest): | 55 | def 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: |