From a2496757fa6745d235aaacad5746db6b1e73cf17 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 30 Apr 2024 10:03:06 +0200 Subject: [PATCH] Return the created env on create req --- api/v1/environments.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/v1/environments.go b/api/v1/environments.go index 7da0d1d..a1fc52f 100644 --- a/api/v1/environments.go +++ b/api/v1/environments.go @@ -64,7 +64,10 @@ func (e *EnvironmentsServer) Create(ctx context.Context, in *proto.CreateOptions if err != nil { return nil, err } - return nil, nil + return &proto.EnvironmentFull{ + Metadata: in.GetMetadata(), + Spec: in.GetSpec(), + }, nil } func (e *EnvironmentsServer) Update(ctx context.Context, in *proto.UpdateOptions) (*proto.EnvironmentFull, error) {