mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-18 02:50:09 +03:00
M #~: Fix clusters on VNet Templates (#4187)
This commit is contained in:
parent
067fa7b5d9
commit
a1adf5e064
@ -364,7 +364,7 @@ define(function(require) {
|
|||||||
|
|
||||||
var clusters = this.clustersTable.retrieveResourceTableSelect();
|
var clusters = this.clustersTable.retrieveResourceTableSelect();
|
||||||
if (clusters != undefined && clusters.length != 0) {
|
if (clusters != undefined && clusters.length != 0) {
|
||||||
network_json["CLUSTERS_IDS"] = clusters.join(",");
|
network_json["CLUSTER_IDS"] = clusters.join(",");
|
||||||
}
|
}
|
||||||
|
|
||||||
$.extend(network_json, CustomTagsTable.retrieve($("#vntemplateCreateContextTab", context)));
|
$.extend(network_json, CustomTagsTable.retrieve($("#vntemplateCreateContextTab", context)));
|
||||||
|
@ -58,7 +58,7 @@ define(function(require){
|
|||||||
var clusters = [];
|
var clusters = [];
|
||||||
|
|
||||||
if (this.element.TEMPLATE.CLUSTERS != undefined){
|
if (this.element.TEMPLATE.CLUSTERS != undefined){
|
||||||
clusters = this.element.TEMPLATE.CLUSTERS_IDS.split(",");
|
clusters = this.element.TEMPLATE.CLUSTER_IDS.split(",");
|
||||||
|
|
||||||
if (!$.isArray(clusters)){
|
if (!$.isArray(clusters)){
|
||||||
clusters = [clusters];
|
clusters = [clusters];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user