summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-01 21:13:13 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-01 21:13:13 +0100
commit0fc8afed4045fbd5499d672e4709f5d98acdfc45 (patch)
treeda9cff80445fb0e84de46d6f859cc6a75efb71bf
parent31c2c04dac73f9cc756a9a98514224b85ad1c796 (diff)
downloadnixos-0fc8afed4045fbd5499d672e4709f5d98acdfc45.tar
nixos-0fc8afed4045fbd5499d672e4709f5d98acdfc45.tar.gz
nixos-0fc8afed4045fbd5499d672e4709f5d98acdfc45.tar.bz2
nixos-0fc8afed4045fbd5499d672e4709f5d98acdfc45.tar.xz
nixos-0fc8afed4045fbd5499d672e4709f5d98acdfc45.zip
...
-rw-r--r--modules/zfssnap/zfssnap/zfssnap/__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/zfssnap/zfssnap/zfssnap/__main__.py b/modules/zfssnap/zfssnap/zfssnap/__main__.py
index a0eade78..9d07401b 100644
--- a/modules/zfssnap/zfssnap/zfssnap/__main__.py
+++ b/modules/zfssnap/zfssnap/zfssnap/__main__.py
@@ -161,6 +161,7 @@ def prune(config, dry_run, keep_newest, do_exec, exec_newest):
161 logger.debug('exec_candidates=%s', exec_candidates) 161 logger.debug('exec_candidates=%s', exec_candidates)
162 already_execed = set() 162 already_execed = set()
163 for snap in exec_candidates: 163 for snap in exec_candidates:
164 logger.debug('checking for ā€˜%sā€™...', snap.name)
164 args = [] 165 args = []
165 args += shlex.split(check_cmd) 166 args += shlex.split(check_cmd)
166 args += [snap.name] 167 args += [snap.name]
@@ -193,6 +194,7 @@ def prune(config, dry_run, keep_newest, do_exec, exec_newest):
193 logger.debug('exec_count of %d reached', exec_count) 194 logger.debug('exec_count of %d reached', exec_count)
194 break 195 break
195 196
197 logger.info('execing for ā€˜%sā€™...', snap.name)
196 args = [] 198 args = []
197 args += shlex.split(exec_cmd) 199 args += shlex.split(exec_cmd)
198 args += [snap.name] 200 args += [snap.name]