forked from TrueCloudLab/frostfs-node
[#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 <leonard@nspcc.ru>
This commit is contained in:
parent
ef57ba3fec
commit
6facc26cb9
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func initSubnetClient(c *morphsubnet.Client, key *keys.PrivateKey) error {
|
||||||
|
|
||||||
nonNotary := viper.GetBool(flagSubnetNonNotary)
|
nonNotary := viper.GetBool(flagSubnetNonNotary)
|
||||||
|
|
||||||
if nonNotary {
|
if !nonNotary {
|
||||||
err = cMorph.EnableNotarySupport()
|
err = cMorph.EnableNotarySupport()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("enable notary support: %w", err)
|
return fmt.Errorf("enable notary support: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue