fix for convert string true to boolean true for assign public ip
make assign public ip readonly in user data configs
MODIFY
deploy-board/deploy_board/static/js/deploy-board.js
deploy-board/deploy_board/static/js/deploy-board.js
@@ -156,7 +156,7 @@ function getDefaultPlacement(capacityCreationInfo) {
//for each abstract_name, we have one candidate.
//If existingItems is null or empty, the abstract_name
//will be the existing one
- var arr = assignPublicIp ? this.cmpPublic : this.cmpPrivate
+ var arr = assignPublicIp == 'true' ? this.cmpPublic : this.cmpPrivate
var fullArr = assignPublicIp ? this.allPublic : this.allPrivate
if (existingItems != null && existingItems.length > 0) {
@@ -205,7 +205,7 @@ function getDefaultPlacement(capacityCreationInfo) {
},
getFullList: function (assignPublicIp, existingItems) {
- var arr = assignPublicIp ? this.allPublic : this.allPrivate
+ var arr = assignPublicIp == 'true' ? this.allPublic : this.allPrivate
if (existingItems != null && existingItems.length > 0) {
existingItems = existingItems.map(function (item) {
var fullInfo = arr.find(

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'
+ readonly: key === 'spiffe_id' || key === 'assign_public_ip'
}
}),
- assignPublicIP: currentCluster.configs.assign_public_ip ? true : false,
+ assignPublicIP: currentCluster.configs.assign_public_ip == "true" ? true : false,
awsRole: currentCluster.configs.aws_role,
baseimages: info.baseImages.map(function(o) {
var acceptance = o.acceptance ? ' [' + o.acceptance + ']' : '';

fix for convert string true to boolean true for assign public ip (#649)

make assign public ip readonly in user data configs