[#1389] storagegroup: Upgrade SDK package

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-05-13 12:25:13 +03:00 committed by LeL
parent 0f376a5d83
commit 5e50ddd7f5
7 changed files with 10 additions and 11 deletions

View file

@ -213,7 +213,7 @@ func (v *FormatValidator) ValidateContent(o *object.Object) error {
return fmt.Errorf("(%T) empty payload in SG", v)
}
sg := storagegroup.New()
var sg storagegroup.StorageGroup
if err := sg.Unmarshal(o.Payload()); err != nil {
return fmt.Errorf("(%T) could not unmarshal SG content: %w", v, err)