function max_cores_for_cluster(cluster_name) {
  if(cluster_name.charAt(0).toUpperCase != cluster_name.charAt(0)){
    cluster_name = capitalize_words(cluster_name);
  }

  const node_type_input = $('#batch_connect_session_context_node_type');
  const data = node_type_input.find(':selected').data();
  const max = data["maxPpn" + cluster_name];

  if(max) {
    return max.toString();
  } else {
    return "0";
  }
}
/**
 * Find the max cores for the cluster given node type
 * that's currently selected
 *
 * @param {string}  cluster_name  The name the cluster
 */
Find the max cores for the cluster given node type
that's currently selected

@param {string}  cluster_name  The name the cluster
Find the max cores for the cluster given node type that ' s currently selected @param { string } cluster_name The name the cluster
function max_cores_for_cluster(cluster_name) {
  if(cluster_name.charAt(0).toUpperCase != cluster_name.charAt(0)){
    cluster_name = capitalize_words(cluster_name);
  }
  const node_type_input = $('#batch_connect_session_context_node_type');
  const data = node_type_input.find(':selected').data();
  const max = data["maxPpn" + cluster_name];
  if(max) {
    return max.toString();
  } else {
    return "0";
  }
}
function max_cores_for_cluster ( cluster_name ) { if ( cluster_name . charAt ( 0 ) . toUpperCase != cluster_name . charAt ( 0 ) ) { cluster_name = capitalize_words ( cluster_name ) ; } const node_type_input = $ ( '#batch_connect_session_context_node_type' ) ; const data = node_type_input . find ( ':selected' ) . data ( ) ; const max = data [ "maxPpn" + cluster_name ] ; if ( max ) { return max . toString ( ) ; } else { return "0" ; } }
Find the max cores for the cluster given node type
 that's currently selected
Find the max cores for the cluster given node type that ' s currently selected