fix Assign public ip checkbox bug
hide assign_public_ip field from user data config list
remove assign public ip from all user data list since we use checkbox to assgin public ip
MODIFY
deploy-board/deploy_board/templates/clusters/cluster_configuration.html
deploy-board/deploy_board/templates/clusters/cluster_configuration.html
return {
name: key,
value: currentCluster.configs[key],
- readonly: key === 'spiffe_id' || key === 'assign_public_ip'
+ readonly: key === 'spiffe_id'
}
- }),
+ }).filter(function(item){return item.name!='assign_public_ip'}),
spiffeId: 'spiffe_id' in currentCluster.configs ? currentCluster.configs['spiffe_id']:null,
assignPublicIP: currentCluster.configs.assign_public_ip == "true" ? true : false,
awsRole: currentCluster.configs.aws_role,
if (this.assignPublicIP){
clusterInfo.configs['assign_public_ip'] = true
}
+ else{
+ clusterInfo.configs['assign_public_ip'] = false
+ }
if (!this.inAdvanced){
clusterInfo.configs['aws_role'] = this.awsRole
}

MODIFY
deploy-board/deploy_board/templates/configs/new_capacity.html
deploy-board/deploy_board/templates/configs/new_capacity.html
@@ -196,7 +196,9 @@ var capacitySetting = new Vue({
if (this.assignPublicIP){
clusterInfo.configs['assign_public_ip'] = true
}
-
+ else {
+ clusterInfo.configs['assign_public_ip'] = false
+ }
if (this.validateInput(clusterInfo)){
//Send request
this.sendRequest(clusterInfo);

MODIFY
deploy-board/deploy_board/templates/configs/new_capacity_adv.html
deploy-board/deploy_board/templates/configs/new_capacity_adv.html
@@ -537,7 +537,9 @@ var capacitySetting = new Vue({
if (this.assignPublicIP){
clusterInfo.configs['assign_public_ip'] = true
}
-
+ else {
+ clusterInfo.configs['assign_public_ip'] = false
+ }
if (this.validateInput(clusterInfo)) {
//Send request
this.sendRequest(clusterInfo);

fix Assign public ip checkbox bug (#656)

hide assign_public_ip field from user data config list

remove assign public ip from all user data list since we use checkbox to assgin public ip