DaanHoogland commented on code in PR #7758:
URL: https://github.com/apache/cloudstack/pull/7758#discussion_r1269202384
##########
ui/src/views/compute/DeployVM.vue:
##########
@@ -1970,7 +1970,8 @@ export default {
deployVmData.dynamicscalingenabled = values.dynamicscalingenabled
deployVmData.iothreadsenabled = values.iothreadsenabled
deployVmData.iodriverpolicy = values.iodriverpolicy
- if (values.userdata && values.userdata.length > 0) {
+ const isUserdataAllowed = !this.userdataDefaultOverridePolicy ||
(this.userdataDefaultOverridePolicy === 'ALLOWOVERRIDE' &&
this.doUserdataOverride) || (this.userdataDefaultOverridePolicy === 'APPEND' &&
this.doUserdataAppend)
Review Comment:
this could be a boolean method
--
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]