forked from TrueCloudLab/frostfs-node
[#290] cmd/cli: Trim 0x prefix from salt argument of object hash cmd
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6df8c84fc2
commit
07a6e2cc43
1 changed files with 3 additions and 1 deletions
|
@ -432,7 +432,9 @@ func getObjectHash(cmd *cobra.Command, _ []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
salt, err := hex.DecodeString(cmd.Flag(getRangeHashSaltFlag).Value.String())
|
||||
strSalt := strings.TrimPrefix(cmd.Flag(getRangeHashSaltFlag).Value.String(), "0x")
|
||||
|
||||
salt, err := hex.DecodeString(strSalt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue