bernardodemarco commented on code in PR #11016: URL: https://github.com/apache/cloudstack/pull/11016#discussion_r2165035178
########## server/src/main/java/com/cloud/api/ApiResponseHelper.java: ########## @@ -5550,4 +5552,48 @@ public void updateTemplateIsoResponsesForIcons(List<TemplateResponse> responses, response.setResourceIconResponse(iconResponse); } } + + @Override + public ConsoleSessionResponse createConsoleSessionResponse(ConsoleSession consoleSession, ResponseView responseView) { + ConsoleSessionResponse consoleSessionResponse = new ConsoleSessionResponse(); + consoleSessionResponse.setId(consoleSession.getUuid()); + consoleSessionResponse.setCreated(consoleSession.getCreated()); + consoleSessionResponse.setAcquired(consoleSession.getAcquired()); + consoleSessionResponse.setRemoved(consoleSession.getRemoved()); + consoleSessionResponse.setConsoleEndpointCreatorAddress(consoleSession.getConsoleEndpointCreatorAddress()); + consoleSessionResponse.setClientAddress(consoleSession.getClientAddress()); + + Domain domain = ApiDBUtils.findDomainById(consoleSession.getDomainId()); + if (domain != null) { + consoleSessionResponse.setDomain(domain.getName()); + consoleSessionResponse.setDomainPath(domain.getPath()); + consoleSessionResponse.setDomainId(domain.getUuid()); + } Review Comment: Done! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org