From 6facc26cb9debcd6f2a116daf978872123d05511 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 30 Nov 2021 20:34:19 +0300 Subject: [PATCH] [#979] adm/subnet: Fix handling of non-notary flag in initClient `initSubnetClient` must call `EnableNotarySupport` only if non-notary flag is not set. Signed-off-by: Leonard Lyubich --- cmd/neofs-adm/internal/modules/morph/subnet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/neofs-adm/internal/modules/morph/subnet.go b/cmd/neofs-adm/internal/modules/morph/subnet.go index c4c21b21f..f39a1931b 100644 --- a/cmd/neofs-adm/internal/modules/morph/subnet.go +++ b/cmd/neofs-adm/internal/modules/morph/subnet.go @@ -111,7 +111,7 @@ func initSubnetClient(c *morphsubnet.Client, key *keys.PrivateKey) error { nonNotary := viper.GetBool(flagSubnetNonNotary) - if nonNotary { + if !nonNotary { err = cMorph.EnableNotarySupport() if err != nil { return fmt.Errorf("enable notary support: %w", err)