forked from TrueCloudLab/frostfs-node
[#1613] neofs-cli: Print lock object ID
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
5c8d725447
commit
198beae703
1 changed files with 2 additions and 1 deletions
|
@ -82,9 +82,10 @@ var objectLockCmd = &cobra.Command{
|
|||
Prepare(cmd, &prm)
|
||||
prm.SetHeader(obj)
|
||||
|
||||
_, err = internalclient.PutObject(prm)
|
||||
res, err := internalclient.PutObject(prm)
|
||||
common.ExitOnErr(cmd, "Store lock object in NeoFS: %w", err)
|
||||
|
||||
cmd.Printf("Lock object ID: %s\n", res.ID())
|
||||
cmd.Println("Objects successfully locked.")
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue