[#1389] storagegroup: Upgrade SDK package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0f376a5d83
commit
5e50ddd7f5
7 changed files with 10 additions and 11 deletions
|
@ -113,14 +113,14 @@ func (c *ClientCache) getSG(ctx context.Context, addr *addressSDK.Address, nm *n
|
|||
continue
|
||||
}
|
||||
|
||||
sg := storagegroup.New()
|
||||
var sg storagegroup.StorageGroup
|
||||
|
||||
err = sg.Unmarshal(payload)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't parse storage group payload: %w", err)
|
||||
}
|
||||
|
||||
return sg, nil
|
||||
return &sg, nil
|
||||
}
|
||||
|
||||
var errNotFound apistatus.ObjectNotFound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue