Skip to content

Commit

Permalink
hashfile: standardize azure etag format (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla authored Feb 15, 2024
1 parent 5fb53c7 commit 4d5abe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dvc_data/hashfile/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def from_info(cls, info: Dict[str, Any], protocol: Optional[str] = None) -> "Met
etag = info.get("etag")
checksum = info.get("checksum")

if protocol == "azure" and etag and not etag.startswith('"'):
etag = f'"{etag}"'
if protocol == "s3" and "ETag" in info:
etag = info["ETag"].strip('"')
elif protocol == "gs" and "etag" in info:
Expand Down

0 comments on commit 4d5abe3

Please sign in to comment.