mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-27 14:15:24 +00:00
bug: cleanup should return integer exit code
This commit is contained in:
@@ -181,7 +181,7 @@ def cleanup(config, containers):
|
||||
)
|
||||
logger.info('Prune stale data freeing storage space')
|
||||
prune_result = restic.prune(config.repository)
|
||||
return forget_result == 0 and prune_result == 0
|
||||
return forget_result and prune_result
|
||||
|
||||
|
||||
def snapshots(config, containers):
|
||||
|
Reference in New Issue
Block a user