Skip to content

Commit 2a6905a

Browse files
Harikrishna PatnalaKishan Kavala
authored andcommitted
CLOUDSTACK-4927: ISO and Template test cases failing duing listiso api call
Removed check for deleted template/ISOs to throw exception as all list APIs returns empty response on deleted entities
1 parent 76dab96 commit 2a6905a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2763,10 +2763,6 @@ private Pair<List<TemplateJoinVO>, Integer> searchForTemplatesInternal(Long temp
27632763
ex.addProxyObject(template.getUuid(), "templateId");
27642764
throw ex;
27652765
}
2766-
if ((template == null) || ((template.getRemoved() != null) && !showRemovedTmpl)){ // If template is removed and showRemoved flag not turned -> throw exception. findbyId returns removed template as well above.
2767-
s_logger.error("Please specify a valid template ID, template " + template.getUuid() + " is removed");
2768-
throw new InvalidParameterValueException("Please specify a valid template ID " + template.getUuid());
2769-
}
27702766

27712767
// if template is not public, perform permission check here
27722768
if (!template.isPublicTemplate() && caller.getType() != Account.ACCOUNT_TYPE_ADMIN) {

0 commit comments

Comments
 (0)