From b4699b1e9fe50c121fea2403d3f7d5dd0b0bf95d Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 25 Nov 2020 10:39:13 +0300 Subject: [PATCH] [#206] cli/container: Use GetEACLWithSignature in set-eacl polling Replace GetEACL call with GetEACLWithSignature one in polling step of set-eacl command of container CLI. Signed-off-by: Leonard Lyubich --- cmd/neofs-cli/modules/container.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-cli/modules/container.go b/cmd/neofs-cli/modules/container.go index ca1a4c6f..92b0a65e 100644 --- a/cmd/neofs-cli/modules/container.go +++ b/cmd/neofs-cli/modules/container.go @@ -422,10 +422,10 @@ Container ID in EACL table will be substituted with ID from the CLI.`, for i := 0; i < awaitTimeout; i++ { time.Sleep(1 * time.Second) - table, err := cli.GetEACL(ctx, id, client.WithTTL(getTTL())) + eaclSig, err := cli.GetEACLWithSignature(ctx, id, client.WithTTL(getTTL())) if err == nil { // compare binary values because EACL could have been set already - got, err := table.Marshal() + got, err := eaclSig.EACL().Marshal() if err != nil { continue }