mirror of https://github.com/apache/cloudstack.git
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:
parent
76dab960da
commit
2a6905a9ce
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue