-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop backup.info errors from breaking barman-cloud-backup-list (#363)
Catches exceptions encountered when reading backup.info files during backup list operations. A warning is logged and we continue iterating through backup files. This fixes a problem where a single unreadable backup.info file would break barman-cloud-backup-list entirely, preventing users from finding any backups in cloud storage. The specific example reported was when a backup.info file has the AWS S3 Glacier storage class however there are other reasons why a backup.info file might not be readable. In these scenarios we would still want to list the backup.info files that were readable, so we therefore catch `Exception`s rather than anything more specific. Closes #332
- Loading branch information
1 parent
889830e
commit d433355
Showing
2 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters