mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +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();
|
||||
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)));
|
||||
|
@ -58,7 +58,7 @@ define(function(require){
|
||||
var clusters = [];
|
||||
|
||||
if (this.element.TEMPLATE.CLUSTERS != undefined){
|
||||
clusters = this.element.TEMPLATE.CLUSTERS_IDS.split(",");
|
||||
clusters = this.element.TEMPLATE.CLUSTER_IDS.split(",");
|
||||
|
||||
if (!$.isArray(clusters)){
|
||||
clusters = [clusters];
|
||||
|
Loading…
x
Reference in New Issue
Block a user