diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 18:01:07 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 18:01:07 +0100 |
commit | e968e02808aae05ed93b02fff0b35a4a3256c2ac (patch) | |
tree | b3c11211020fe8ea43ceed1f09e42c5966425604 /modules | |
parent | 92e72929e65f00de10d8d8fa006c30184a52bcf1 (diff) | |
download | nixos-e968e02808aae05ed93b02fff0b35a4a3256c2ac.tar nixos-e968e02808aae05ed93b02fff0b35a4a3256c2ac.tar.gz nixos-e968e02808aae05ed93b02fff0b35a4a3256c2ac.tar.bz2 nixos-e968e02808aae05ed93b02fff0b35a4a3256c2ac.tar.xz nixos-e968e02808aae05ed93b02fff0b35a4a3256c2ac.zip |
zfssnap: ...
Diffstat (limited to 'modules')
-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 731cd29a..83d30a6b 100644 --- a/modules/zfssnap/zfssnap.py +++ b/modules/zfssnap/zfssnap.py | |||
@@ -142,7 +142,7 @@ def prune(config, dry_run, keep_newest): | |||
142 | if not to_destroy: | 142 | if not to_destroy: |
143 | logger.info('Nothing to prune') | 143 | logger.info('Nothing to prune') |
144 | 144 | ||
145 | for snap in to_destroy: | 145 | for snap in sorted(to_destroy): |
146 | args = ['zfs', 'destroy'] | 146 | args = ['zfs', 'destroy'] |
147 | if dry_run: | 147 | if dry_run: |
148 | args += ['-n'] | 148 | args += ['-n'] |