From 2a6905a9ce5c6499a5632afb3d8b7e8af71ef7fa Mon Sep 17 00:00:00 2001 From: Harikrishna Patnala Date: Wed, 23 Oct 2013 12:49:34 +0530 Subject: [PATCH] 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 --- server/src/com/cloud/api/query/QueryManagerImpl.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/src/com/cloud/api/query/QueryManagerImpl.java b/server/src/com/cloud/api/query/QueryManagerImpl.java index 9963d42e35d..57b9ca9eab7 100644 --- a/server/src/com/cloud/api/query/QueryManagerImpl.java +++ b/server/src/com/cloud/api/query/QueryManagerImpl.java @@ -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) {