From a7f71bf16708d4c7b66deabd7840d951e8b4cfc7 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 25 May 2021 18:10:34 +0300 Subject: [PATCH] [#525] v2/container: Return session token and signature in Get In recent API changes `GetResponseBody` carries session token and signature. In recent API Go lib changes `Container` structure carries its session token and signature. Write session token and signature of container from sidechain to Get response body in node's `ContainerService` server. Signed-off-by: Leonard Lyubich --- pkg/services/container/morph/executor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/container/morph/executor.go b/pkg/services/container/morph/executor.go index aa483862..a424847a 100644 --- a/pkg/services/container/morph/executor.go +++ b/pkg/services/container/morph/executor.go @@ -65,6 +65,8 @@ func (s *morphExecutor) Get(ctx context.Context, body *container.GetRequestBody) res := new(container.GetResponseBody) res.SetContainer(cnr.ToV2()) + res.SetSignature(cnr.Signature().ToV2()) + res.SetSessionToken(cnr.SessionToken().ToV2()) return res, nil }