[#1182] neofs-cli: use BasicACL.String() for user output

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-02-21 12:36:12 +03:00 committed by LeL
parent dd0e10d306
commit a8d10704d5

View file

@ -842,7 +842,7 @@ func printJSONMarshaler(cmd *cobra.Command, j json.Marshaler, entity string) {
}
func prettyPrintBasicACL(cmd *cobra.Command, basicACL acl.BasicACL) {
cmd.Printf("basic ACL: %.8x", basicACL)
cmd.Printf("basic ACL: %s", basicACL)
for k, v := range wellKnownBasicACL {
if v == basicACL {
cmd.Printf(" (%s)\n", k)