mirror of https://github.com/apache/cloudstack.git
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:
parent
58938d96d4
commit
97e47f8847
|
|
@ -2850,7 +2850,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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue