From a455f4e3a739b56fcd5e15a01c95a10816800538 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 29 Apr 2022 19:59:05 +0300 Subject: [PATCH] [#1365] cli: Sync container with network config Signed-off-by: Pavel Karpy --- cmd/neofs-cli/modules/container/create.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-cli/modules/container/create.go b/cmd/neofs-cli/modules/container/create.go index abb15d47c..73f69581d 100644 --- a/cmd/neofs-cli/modules/container/create.go +++ b/cmd/neofs-cli/modules/container/create.go @@ -80,6 +80,13 @@ It will be stored in sidechain when inner ring will accepts it.`, cli := internalclient.GetSDKClientByFlag(cmd, key, commonflags.RPC) + var syncContainerPrm internalclient.SyncContainerPrm + syncContainerPrm.SetClient(cli) + syncContainerPrm.SetContainer(&cnr) + + _, err = internalclient.SyncContainerSettings(syncContainerPrm) + common.ExitOnErr(cmd, "syncing container's settings rpc error: %w", err) + var putPrm internalclient.PutContainerPrm putPrm.SetClient(cli) putPrm.SetContainer(cnr) @@ -89,7 +96,7 @@ It will be stored in sidechain when inner ring will accepts it.`, } res, err := internalclient.PutContainer(putPrm) - common.ExitOnErr(cmd, "rpc error: %w", err) + common.ExitOnErr(cmd, "put container rpc error: %w", err) id := res.ID()