sureshanaparti commented on issue #5731:
URL: https://github.com/apache/cloudstack/issues/5731#issuecomment-999425925


   > Through testing, I found the problem is that when getting listTemplates 
with `showunique: true` it sorts wrong. But when I remove this parameter, the 
returned data is sorted correctly, but the result is a sequence of duplicate 
samples. As far as I can see is it coming from the API?
   > 
   > * With `showunique: true`
   >   
![image](https://user-images.githubusercontent.com/13766648/146481630-ec075c87-7e46-49d3-8e6a-6aa525e9f175.png)
   > * Without `showunique: true`
   >   
![image](https://user-images.githubusercontent.com/13766648/146481763-8e7c53a9-5cd1-4202-aed3-62d2d6f1ae13.png)
   
   @utchoang With 'showunique: true', API returns unique templates irrespective 
of zones, and without 'showunique: true', all the templates in the zones are 
returned. So, if a template is registered for mutiple/all zones, it is present 
multiple times.
   From UI, the templates are always listed with 'showunique: true'.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to