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
b0e94b6a6b
commit
37f813604f
2 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,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
|
||||
|
|
|
@ -345,6 +345,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