Skip to content

Commit eeefffa

Browse files
committed
[core] Return smaller environment info payload in NewEnvironment error
1 parent dc7428d commit eeefffa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ func (m *RpcServer) NewEnvironment(cxt context.Context, request *pb.NewEnvironme
293293
Id: id.String(),
294294
CreatedWhen: time.Now().UnixMilli(),
295295
State: "ERROR", // not really, but close
296-
UserVars: request.GetVars(),
297296
NumberOfFlps: 0,
298297
}
299298
st, _ = st.WithDetails(ei)
@@ -309,7 +308,6 @@ func (m *RpcServer) NewEnvironment(cxt context.Context, request *pb.NewEnvironme
309308
Id: id.String(),
310309
CreatedWhen: time.Now().UnixMilli(),
311310
State: "ERROR", // not really, but close
312-
UserVars: request.GetVars(),
313311
NumberOfFlps: 0,
314312
}
315313
st, _ = st.WithDetails(ei)
@@ -329,6 +327,7 @@ func (m *RpcServer) NewEnvironment(cxt context.Context, request *pb.NewEnvironme
329327
defaults = newEnv.GlobalDefaults.Raw()
330328
vars = newEnv.GlobalVars.Raw()
331329
userVars = newEnv.UserVars.Raw()
330+
err = nil
332331
}
333332

334333
integratedServicesEnvsData := integration.PluginsInstance().GetEnvironmentsData([]uid.ID{id})

0 commit comments

Comments
 (0)