diff options
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'] |