diff --git a/bin/zsnapper b/bin/zsnapper index 39a87aa..829cd10 100644 --- a/bin/zsnapper +++ b/bin/zsnapper @@ -228,6 +228,7 @@ def send_snapshots(fslist, snapshots, config, sudo): log.info('{} successfully sent to remote'.format(fs)) except zsnaplib.ZFSSnapshotError as e: log.warning(e) + failed_snapshots.add(fs) return failed_snapshots def weed_snapshots(fslist, snapshots, config, sudo, failed_snapshots): diff --git a/zsnaplib/__init__.py b/zsnaplib/__init__.py index 27c0653..7e8ad95 100644 --- a/zsnaplib/__init__.py +++ b/zsnaplib/__init__.py @@ -46,7 +46,6 @@ def do_zfs_command(args, sudo, zfs_cmd, pipecmd=None): (out, err) = ctrl_proc.communicate() if ctrl_proc.returncode != 0: - print(proc.returncode) raise ZFSSnapshotError('Failed to execute {}: {}'.format(cmd, err)) return out