forked from TrueCloudLab/frostfs-node
[#58] object/transformer: Inherit type of parent object
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
39ddb3a3f4
commit
b24adeae89
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ func fromObject(obj *object.RawObject) *object.RawObject {
|
|||
res.SetContainerID(obj.GetContainerID())
|
||||
res.SetOwnerID(obj.GetOwnerID())
|
||||
res.SetAttributes(obj.GetAttributes()...)
|
||||
res.SetType(obj.GetType())
|
||||
|
||||
return res
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue