Skip to content

Commit 261530c

Browse files
authored
server: honor listall param for listiso api (apache#9064)
Fixes apache#8315 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 8bb7bbe commit 261530c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4768,7 +4768,7 @@ private Pair<List<TemplateJoinVO>, Integer> searchForIsosInternal(ListIsosCmd cm
47684768
boolean showRemovedISO = cmd.getShowRemoved();
47694769
Account caller = CallContext.current().getCallingAccount();
47704770

4771-
boolean listAll = false;
4771+
boolean listAll = cmd.listAll();
47724772
if (isoFilter != null && isoFilter == TemplateFilter.all) {
47734773
if (caller.getType() == Account.Type.NORMAL) {
47744774
throw new InvalidParameterValueException("Filter " + TemplateFilter.all + " can be specified by admin only");

0 commit comments

Comments
 (0)