Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Aug 24, 2022
1 parent ef7ea8d commit 0d2d237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/supervisor/pkg/supervisor/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,14 +662,16 @@ func (is *InfoService) WorkspaceInfo(ctx context.Context, req *api.WorkspaceInfo
} else {
for _, wsCls := range classes {
if wsCls.ID == is.cfg.WorkspaceClass {
resp.WorkspaceClass = &api.WorkspaceInfoResponse_WorkspaceClass{
found := &api.WorkspaceInfoResponse_WorkspaceClass{
Id: wsCls.ID,
Category: wsCls.Category,
DisplayName: wsCls.DisplayName,
Description: wsCls.Description,
Powerups: uint32(wsCls.Powerups),
IsDefault: wsCls.IsDefault,
}
resp.WorkspaceClass = found
is.workspaceClass = found
}
}
}
Expand Down

0 comments on commit 0d2d237

Please sign in to comment.