mirror of
https://github.com/tuna/tunasync.git
synced 2025-06-14 13:32:43 +00:00
btrfs only commit when job succeeded
This commit is contained in:
parent
f88b89e873
commit
2a609f6eb7
@ -20,8 +20,9 @@ class BtrfsHook(JobHook):
|
||||
def before_job(self, *args, **kwargs):
|
||||
self._create_working_snapshot()
|
||||
|
||||
def after_job(self, *args, **kwargs):
|
||||
self._commit_changes()
|
||||
def after_job(self, status=None, *args, **kwargs):
|
||||
if status == "success":
|
||||
self._commit_changes()
|
||||
|
||||
def _ensure_subvolume(self):
|
||||
# print(self.service_dir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user