mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-26 16:04:06 +00:00
get_item_data: do not require item.uid/gid, see #7249
if uid is not present, use None. if gid is not present, use None.
This commit is contained in:
parent
4f9cda1aab
commit
262812e76f
1 changed files with 4 additions and 4 deletions
|
@ -893,10 +893,10 @@ def get_item_data(self, item):
|
|||
item_data["type"] = item_type
|
||||
item_data["mode"] = mode
|
||||
|
||||
item_data.update(text_to_json("user", item.get("user", str(item.uid))))
|
||||
item_data.update(text_to_json("group", item.get("group", str(item.gid))))
|
||||
item_data["uid"] = item.uid
|
||||
item_data["gid"] = item.gid
|
||||
item_data["uid"] = item.get("uid") # int or None
|
||||
item_data["gid"] = item.get("gid") # int or None
|
||||
item_data.update(text_to_json("user", item.get("user", str(item_data["uid"]))))
|
||||
item_data.update(text_to_json("group", item.get("group", str(item_data["gid"]))))
|
||||
|
||||
if self.json_lines:
|
||||
item_data["healthy"] = "chunks_healthy" not in item
|
||||
|
|
Loading…
Reference in a new issue