shwstppr opened a new pull request, #12188: URL: https://github.com/apache/cloudstack/pull/12188
### Description Fixes #12179 Recently behaviour for updating resource limits for account/domain has changed with adding entries only for those types which don't have a default value. This results in listResourceLimits API returning only a single entry for a resource type. This PR fixes the behaviour. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [x] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [ ] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate): <img width="1535" height="734" alt="image" src="https://github.com/user-attachments/assets/02040c56-ac01-44fd-bb01-cce92218a6bf" /> ### How Has This Been Tested? ``` > list resourcelimits account=d1user domainid=cc2f671f-9702-478b-95cb-9c417f48c9e8 (d1) filter=resourcetypename,tag { "count": 19, "resourcelimit": [ { "resourcetypename": "user_vm" }, { "resourcetypename": "public_ip" }, { "resourcetypename": "volume" }, { "resourcetypename": "volume", "tag": "t1" }, { "resourcetypename": "snapshot" }, { "resourcetypename": "template" }, { "resourcetypename": "project" }, { "resourcetypename": "network" }, { "resourcetypename": "vpc" }, { "resourcetypename": "cpu" }, { "resourcetypename": "memory" }, { "resourcetypename": "primary_storage" }, { "resourcetypename": "primary_storage", "tag": "t1" }, { "resourcetypename": "secondary_storage" }, { "resourcetypename": "backup" }, { "resourcetypename": "backup_storage" }, { "resourcetypename": "bucket" }, { "resourcetypename": "object_storage" }, { "resourcetypename": "gpu" } ] } ``` <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> #### How did you try to break this feature and the system with this change? <!-- see how your change affects other areas of the code, etc. --> <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document --> -- 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]
