kiranchavala commented on issue #7349:
URL: https://github.com/apache/cloudstack/issues/7349#issuecomment-1488006667

   @harikrishna-patnala 
   
   I think this is a corner case 
   
   I  tested with the default builtin template ( CentOS 5.5(64-bit) no GUI 
(KVM))
   
   template type": "BUILTIN",
   
   account": "system",
   
   
   1. Execute the updateTemplatePermissions to make the template a community 
   
   cmk) 🐱 > update templatepermissions id=2cfda62c-cde9-11ed-af4d-1e003100042b 
isfeatured=false
   {
     "success": true
   }
   
   2. Execute the list template call 
   
   cmk 🐱 > list templates templatefilter=community
   {
     "count": 1,
     "template": [
       {
         "account": "system",
         "bits": 0,
         "checksum": "ed0e788280ff2912ea40f7f91ca7a249",
         "created": "2023-03-29T04:32:27+0000",
         "crossZones": true,
         "deployasis": false,
         "details": {},
         "directdownload": false,
         "displaytext": "CentOS 5.5(64-bit) no GUI (KVM)",
         "domain": "ROOT",
         "domainid": "2cfa7696-cde9-11ed-af4d-1e003100042b",
         "downloaddetails": [
           {
             "datastore": 
"NFS://10.0.32.4/acs/secondary/pr6755-t6330-kvm-centos7/pr6755-t6330-kvm-centos7-sec1",
             "downloadPercent": "100",
             "downloadState": "DOWNLOADED"
           }
         ],
         "format": "QCOW2",
         "hasannotations": false,
         "hypervisor": "KVM",
         "id": "2cfda62c-cde9-11ed-af4d-1e003100042b",
         "isdynamicallyscalable": false,
         "isextractable": true,
         "isfeatured": false,
         "ispublic": true,
         "isready": true,
         "name": "CentOS 5.5(64-bit) no GUI (KVM)",
         "ostypeid": "2d12470a-cde9-11ed-af4d-1e003100042b",
         "ostypename": "CentOS 5.5 (64-bit)",
         "passwordenabled": false,
         "physicalsize": 1769537536,
         "requireshvm": false,
         "size": 8589934592,
         "sshkeyenabled": false,
         "status": "Download Complete",
         "tags": [],
         "templatetype": "BUILTIN",
         "url": 
"http://10.0.3.122/builtin_templates/eec2209b-9875-3c8d-92be-c001bd8a0faf.qcow2.bz2";,
         "zoneid": "bc65a6c9-4d80-40b5-b6bc-4ea10f37a1a4",
         "zonename": "pr6755-t6330-kvm-centos7"
       }
     ]
   }
   
   
   3. Doesn't display when the name is passed  
   
   (cmk) 🐱 > list templates templatefilter=community name=CentOS 5.5(64-bit) no 
GUI (KVM)
   
   
   
   


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