Skip to content

Commit

Permalink
Fix decompressing object names from GZIP for chadmin object-storage c…
Browse files Browse the repository at this point in the history
…lean (#90)
  • Loading branch information
aalexfvk authored Jan 10, 2024
1 parent 939b4ac commit 8757316
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ch_tools/chadmin/cli/object_storage_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ def clean_object_storage(ctx, prefix, file, compressed):
"""
disk_conf: S3DiskConfiguration = ctx.obj["disk_configuration"]

file = TextIOWrapper(file)
if compressed:
file = GzipFile(fileobj=file)
file = TextIOWrapper(file)

if prefix:
file = (
obj.key
Expand Down

0 comments on commit 8757316

Please sign in to comment.