forked from TrueCloudLab/frostfs-api-go
[#321] pkg/client: Do not verify container body in GetContainer
There is a problem when containers with newer versions considered invalid by Client. This does not allow receiving correct containers of new versions through the client. Fix the problem by turning off version check in `Client.GetContainer`. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
76abe7d6cb
commit
d809155efa
1 changed files with 1 additions and 4 deletions
|
@ -173,10 +173,7 @@ func (c *clientImpl) GetContainer(ctx context.Context, id *cid.ID, opts ...CallO
|
||||||
|
|
||||||
body := resp.GetBody()
|
body := resp.GetBody()
|
||||||
|
|
||||||
cnr, err := container.NewVerifiedFromV2(body.GetContainer())
|
cnr := container.NewContainerFromV2(body.GetContainer())
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
cnr.SetSessionToken(
|
cnr.SetSessionToken(
|
||||||
session.NewTokenFromV2(body.GetSessionToken()),
|
session.NewTokenFromV2(body.GetSessionToken()),
|
||||||
|
|
Loading…
Reference in a new issue