Skip to content

Commit 97e47f8

Browse files
committed
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.
1 parent 58938d9 commit 97e47f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/api/query/QueryManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2850,7 +2850,7 @@ private Pair<List<TemplateJoinVO>, Integer> searchForTemplatesInternal(Long temp
28502850

28512851
// verify templateId parameter and specially handle it
28522852
if (templateId != null) {
2853-
template = _templateDao.findById(templateId);
2853+
template = _templateDao.findByIdIncludingRemoved(templateId); // Done for backward compatibility - Bug-5221
28542854
if (template == null) {
28552855
throw new InvalidParameterValueException("Please specify a valid template ID.");
28562856
}// If ISO requested then it should be ISO.

0 commit comments

Comments
 (0)