mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-12 23:29:07 +00:00
Merge pull request #8492 from ThomasWaldmann/fix-archive-size-transfer
work around missing size/nfiles archive metadata, fixes #8491
This commit is contained in:
commit
c7c204e713
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ class Archives:
|
||||||
exists=True, # repo has a valid archive item
|
exists=True, # repo has a valid archive item
|
||||||
username=archive_item.username,
|
username=archive_item.username,
|
||||||
hostname=archive_item.hostname,
|
hostname=archive_item.hostname,
|
||||||
size=archive_item.size,
|
size=archive_item.get("size", 0),
|
||||||
nfiles=archive_item.nfiles,
|
nfiles=archive_item.get("nfiles", 0),
|
||||||
comment=archive_item.comment, # not always present?
|
comment=archive_item.comment, # not always present?
|
||||||
tags=tuple(sorted(getattr(archive_item, "tags", []))), # must be hashable
|
tags=tuple(sorted(getattr(archive_item, "tags", []))), # must be hashable
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue