[#236] Add EC logic this HEAD command CLI

pull/238/head
Dmitriy Zayakin 2024-06-04 12:46:32 +03:00 committed by Dmitriy Zayakin
parent ea1b348120
commit ec42b156ac
1 changed files with 5 additions and 0 deletions

View File

@ -615,6 +615,11 @@ def head_object(
fst_line_idx = result.stdout.find("\n")
decoded = json.loads(result.stdout[fst_line_idx:])
# if response
if "chunks" in decoded.keys():
logger.info("decoding ec chunks")
return decoded["chunks"]
# If response is Complex Object header, it has `splitId` key
if "splitId" in decoded.keys():
logger.info("decoding split header")