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
This commit is contained in:
Harikrishna Patnala 2013-10-23 12:49:34 +05:30 committed by Kishan Kavala
parent 76dab960da
commit 2a6905a9ce
1 changed files with 0 additions and 4 deletions

View File

@ -2763,10 +2763,6 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
ex.addProxyObject(template.getUuid(), "templateId");
throw ex;
}
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.
s_logger.error("Please specify a valid template ID, template " + template.getUuid() + " is removed");
throw new InvalidParameterValueException("Please specify a valid template ID " + template.getUuid());
}
// if template is not public, perform permission check here
if (!template.isPublicTemplate() && caller.getType() != Account.ACCOUNT_TYPE_ADMIN) {