forked from TrueCloudLab/frostfs-node
[#2000] cli: Provide a bearer token to spawned HEAD
by DELETE
If a `neofs-cli object delete` operation is performing using a bearer token, add it to the new `HEAD` requests that collects children OIDs. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
c38ad2d339
commit
110f6e7864
2 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ Changelog for NeoFS Node
|
|||
- Broadcasting helper objects (#1972)
|
||||
- `neofs-cli lock object`'s `lifetime` flag handling (#1972)
|
||||
- Do not move write-cache in read-only mode for flushing (#1906)
|
||||
- Child object collection on CLI side with a bearer token (#2000)
|
||||
|
||||
### Removed
|
||||
### Updated
|
||||
|
|
|
@ -328,6 +328,8 @@ func collectObjectRelatives(cmd *cobra.Command, cli *client.Client, cnr cid.ID,
|
|||
prmHead.SetAddress(addrObj)
|
||||
prmHead.SetRawFlag(true)
|
||||
|
||||
Prepare(cmd, &prmHead)
|
||||
|
||||
_, err := internal.HeadObject(prmHead)
|
||||
|
||||
var errSplit *object.SplitInfoError
|
||||
|
|
Loading…
Reference in a new issue