JoaoJandre opened a new pull request, #6683: URL: https://github.com/apache/cloudstack/pull/6683
### Description This PR extends PR #6051 by making the `listVirtualMachines` API return the VMs' userdata, so that when the editVM form is opened in the UI, the existing userdata will be shown. A new optional boolean parameter called `userdata` was added to the `listVirtualMachines` API, that controls whether the API should return userdata or not. The default value is false. The `sanitizeReverse` function was also moved to util.js to prevent duplicated code. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [X] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [X] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate):  ### How Has This Been Tested? This was tested in a local lab by creating a new VM and editing it's userdata through the UI. After the form was closed it was reopened to check if the userdata that was added before would be shown. -- 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]
