Skip to content

Commit

Permalink
cli: do not overwrite parsed eacl rules
Browse files Browse the repository at this point in the history
Regression from c72af12. As I have already said
in associated PR, new SDK turned out to be a counter-CLI thing.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Sep 9, 2024
1 parent d214b0c commit 099cf30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/neofs-cli/modules/util/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"errors"
"fmt"
"math/big"
"slices"
"strings"
"text/tabwriter"

Expand Down Expand Up @@ -236,7 +237,7 @@ func parseEACLTable(tb *eacl.Table, args []string) error {
records = append(records, record)
}

tb.SetRecords(records)
tb.SetRecords(slices.Concat(tb.Records(), records))

Check warning on line 240 in cmd/neofs-cli/modules/util/acl.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-cli/modules/util/acl.go#L240

Added line #L240 was not covered by tests

return nil
}
Expand Down

0 comments on commit 099cf30

Please sign in to comment.