From 198beae703289b7a62bbd38b89cb30ea7a1f87f2 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 19 Jul 2022 16:23:31 +0300 Subject: [PATCH] [#1613] neofs-cli: Print lock object ID Signed-off-by: Evgenii Stratonikov --- cmd/neofs-cli/modules/object/lock.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-cli/modules/object/lock.go b/cmd/neofs-cli/modules/object/lock.go index 564375ae6..860cbce70 100644 --- a/cmd/neofs-cli/modules/object/lock.go +++ b/cmd/neofs-cli/modules/object/lock.go @@ -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.") }, }