From a1ca4f1d5669861b938858add4cbf7c6e0fb5a8c Mon Sep 17 00:00:00 2001 From: Nitin Mehta Date: Mon, 25 Nov 2013 13:47:42 -0800 Subject: [PATCH] CLOUDSTACK-5221: In order to keep backward compatibility, listisos should return an empty response than an error when id of a removed iso is passed. --- server/src/com/cloud/api/query/QueryManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/query/QueryManagerImpl.java b/server/src/com/cloud/api/query/QueryManagerImpl.java index bda7b4dcb20..91222760dc1 100644 --- a/server/src/com/cloud/api/query/QueryManagerImpl.java +++ b/server/src/com/cloud/api/query/QueryManagerImpl.java @@ -2769,7 +2769,7 @@ public class QueryManagerImpl extends ManagerBase implements QueryService { // verify templateId parameter and specially handle it if (templateId != null) { - template = _templateDao.findById(templateId); + template = _templateDao.findByIdIncludingRemoved(templateId); // Done for backward compatibility - Bug-5221 if (template == null) { throw new InvalidParameterValueException("Please specify a valid template ID."); }// If ISO requested then it should be ISO.