From e968e02808aae05ed93b02fff0b35a4a3256c2ac Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 18:01:07 +0100 Subject: zfssnap: ... --- modules/zfssnap/zfssnap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/zfssnap') 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): if not to_destroy: logger.info('Nothing to prune') - for snap in to_destroy: + for snap in sorted(to_destroy): args = ['zfs', 'destroy'] if dry_run: args += ['-n'] -- cgit v1.2.3