You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/03/07 07:19:55 UTC

[GitHub] [cloudstack] weizhouapache commented on a change in pull request #6051: UI: update vm with userdata

weizhouapache commented on a change in pull request #6051:
URL: https://github.com/apache/cloudstack/pull/6051#discussion_r820434349



##########
File path: ui/src/views/compute/EditVM.vue
##########
@@ -215,6 +227,9 @@ export default {
           params.haenable = values.haenable
         }
         params.group = values.group
+        if (values.userdata && values.userdata.length > 0) {
+          params.userdata = encodeURIComponent(btoa(this.sanitizeReverse(values.userdata)))
+        }
         this.loading = true
 
         api('updateVirtualMachine', params).then(json => {

Review comment:
       @davidjumani 
   good point. thanks !




-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org