phsm opened a new issue, #9083:
URL: https://github.com/apache/cloudstack/issues/9083

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.18.1.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   1. Make sure your ROOT domain has a DomainAdmin account.
   2. Pick one of the VM templates on a running Cloudstack platform to test the 
API call on
   3. Run the following command under the RootAdmin: `cmk list templates 
templatefilter=executable filter=id,name keyword=<some part of the template 
name>`
   4. Run the same command under the DomainAdmin.
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   When running the command under **RootAdmin**, the result template entries 
match the "count" JSON field:
   ~~~
   cmk list templates templatefilter=executable filter=id,name 
keyword=MyTemplate
   {
     "count": 5,
     "template": [
       {
         "id": "19c1af19-ca5a-4f1d-aece-d253f3e961c2",
         "name": "MyTemplate 1"
       },
       {
         "id": "804558dd-cc80-4e13-a67d-0db607930fc4",
         "name": "MyTemplate 2"
       },
       {
         "id": "7fc10cc1-34e6-46b2-b699-8369b4cc031b",
         "name": "MyTemplate 3"
       },
       {
         "id": "7f6504f5-b5ae-437f-99a5-4ca814e41157",
        "name": "MyTemplate 4"
       },
       {
         "id": "bf338572-85df-46aa-b4d6-678edd865c5e",
         "name": "MyTemplate 5"
       }
     ]
   }
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   When running the command under **DomainAdmin**, the result template entries 
**do not** match the "count" JSON field:
   ~~~
   cmk list templates templatefilter=executable filter=id,name 
keyword=MyTemplate
   {
     "count": 20,
     "template": [
       {
         "id": "19c1af19-ca5a-4f1d-aece-d253f3e961c2",
         "name": "MyTemplate 1"
       },
       {
         "id": "804558dd-cc80-4e13-a67d-0db607930fc4",
         "name": "MyTemplate 2"
       },
       {
         "id": "7fc10cc1-34e6-46b2-b699-8369b4cc031b",
         "name": "MyTemplate 3"
       },
       {
         "id": "7f6504f5-b5ae-437f-99a5-4ca814e41157",
        "name": "MyTemplate 4"
       },
       {
         "id": "bf338572-85df-46aa-b4d6-678edd865c5e",
         "name": "MyTemplate 5"
       }
     ]
   }
   ~~~
   
   


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