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.
This commit is contained in:
Nitin Mehta 2013-11-25 13:47:42 -08:00
parent 5a9b4ee843
commit a1ca4f1d56

View File

@ -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.