M #~: Fix clusters on VNet Templates (#4187)

(cherry picked from commit a1adf5e064)
This commit is contained in:
Sergio Betanzos authored and Tino Vazquez committed 2020-02-13 17:48:03 +01:00
1 parent 8b234c2b17
commit 5867555964
2 files changed
+2 -2

No files matched your search

@@ -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];