Skip to content

Commit

Permalink
Ignore cloud sync snapshot deletion error (#15422)
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin authored Jan 20, 2025
1 parent 972ad20 commit c3a4269
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/middlewared/middlewared/plugins/cloud_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ async def rclone(middleware, job, cloud_sync, dry_run):
await asyncio.wait_for(check_cloud_sync, None)

if snapshot:
await middleware.call("zfs.snapshot.delete", snapshot)
try:
await middleware.call("zfs.snapshot.delete", snapshot)
except CallError as e:
middleware.logger.warning(f"Error deleting ZFS snapshot on cloud sync finish: {e!r}")

refresh_credentials = REMOTES[cloud_sync["credentials"]["provider"]["type"]].refresh_credentials
if refresh_credentials:
Expand Down

0 comments on commit c3a4269

Please sign in to comment.