From 9929dcf50b9e641bf3b411b939e24577e9ad7c45 Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Thu, 9 Mar 2023 15:53:59 +0300 Subject: [PATCH] [#126] adm: Exclude `group.frostfs` key from output of the `dump-hashes` Signed-off-by: Anton Nikiforov --- cmd/frostfs-adm/internal/modules/morph/dump_hashes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/frostfs-adm/internal/modules/morph/dump_hashes.go b/cmd/frostfs-adm/internal/modules/morph/dump_hashes.go index 32f85bcea..69db5c7bd 100644 --- a/cmd/frostfs-adm/internal/modules/morph/dump_hashes.go +++ b/cmd/frostfs-adm/internal/modules/morph/dump_hashes.go @@ -8,6 +8,7 @@ import ( "text/tabwriter" "git.frostfs.info/TrueCloudLab/frostfs-contract/nns" + morphClient "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/morph/client" "github.com/nspcc-dev/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" @@ -123,7 +124,7 @@ func dumpCustomZoneHashes(cmd *cobra.Command, nnsHash util.Uint160, zone string, return } - if !bytes.HasSuffix(bs, []byte(zone)) { + if !bytes.HasSuffix(bs, []byte(zone)) || bytes.HasPrefix(bs, []byte(morphClient.NNSGroupKeyName)) { // Related https://github.com/nspcc-dev/neofs-contract/issues/316. return }