forked from TrueCloudLab/frostfs-api-go
[#160] sdk/client: Set object identifier in Head result
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c814cc62fa
commit
2cc58e36f8
1 changed files with 4 additions and 1 deletions
|
@ -577,8 +577,11 @@ func (c *Client) getObjectHeaderV2(ctx context.Context, p *ObjectHeaderParams, o
|
||||||
obj := new(v2object.Object)
|
obj := new(v2object.Object)
|
||||||
obj.SetHeader(hdr)
|
obj.SetHeader(hdr)
|
||||||
|
|
||||||
|
raw := object.NewRawFromV2(obj)
|
||||||
|
raw.SetID(p.addr.GetObjectID())
|
||||||
|
|
||||||
// convert the object
|
// convert the object
|
||||||
return object.NewFromV2(obj), nil
|
return raw.Object(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *RangeDataParams) WithAddress(v *object.Address) *RangeDataParams {
|
func (p *RangeDataParams) WithAddress(v *object.Address) *RangeDataParams {
|
||||||
|
|
Loading…
Reference in a new issue