Skip to content

Commit 758bdae

Browse files
Update server/src/main/java/org/apache/cloudstack/consoleproxy/ConsoleAccessManagerImpl.java
Co-authored-by: Nicolas Vazquez <[email protected]>
1 parent adf302a commit 758bdae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/src/main/java/org/apache/cloudstack/consoleproxy/ConsoleAccessManagerImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,7 @@ protected Pair<List<ConsoleSessionVO>, Integer> listConsoleSessionsInternal(List
228228
userId = caller.getCallingUserId();
229229
}
230230

231-
List<Long> domainIds;
232-
if (isRecursive) {
233-
domainIds = domainDao.getDomainAndChildrenIds(domainId);
234-
} else {
235-
domainIds = List.of(domainId);
236-
}
231+
List<Long> domainIds = isRecursive ? domainDao.getDomainAndChildrenIds(domainId) : List.of(domainId);
237232

238233
return consoleSessionDao.listConsoleSessions(cmd.getId(), domainIds, accountId, userId,
239234
cmd.getHostId(), cmd.getStartDate(), cmd.getEndDate(), cmd.getInstanceId(),

0 commit comments

Comments
 (0)