forked from TrueCloudLab/frostfs-s3-gw
[#399] Use bearer token for system objects
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
7710de39ec
commit
3c5c2f20d8
2 changed files with 12 additions and 6 deletions
|
@ -117,9 +117,9 @@ func (n *layer) putSystemObjectIntoNeoFS(ctx context.Context, p *PutSystemObject
|
|||
prm.Attributes = append(prm.Attributes, [2]string{k, v})
|
||||
}
|
||||
|
||||
id, err := n.neoFS.CreateObject(ctx, prm)
|
||||
id, err := n.objectPut(ctx, prm)
|
||||
if err != nil {
|
||||
return nil, n.transformNeofsError(ctx, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
meta, err := n.objectHead(ctx, p.BktInfo.CID, id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue