From 135edec07feab249660c92a54b1c48bb03fba156 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Wed, 4 Apr 2012 11:14:28 +0200 Subject: [PATCH] Ozones: do not allow creating vdc with non clustered resources (cherry picked from commit b3b68c0fdc24f3bc1373bee8ad914d2792da6bea) --- src/ozones/Server/public/js/plugins/vdcs-tab.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ozones/Server/public/js/plugins/vdcs-tab.js b/src/ozones/Server/public/js/plugins/vdcs-tab.js index 858beb081b..29bf077e10 100644 --- a/src/ozones/Server/public/js/plugins/vdcs-tab.js +++ b/src/ozones/Server/public/js/plugins/vdcs-tab.js @@ -241,7 +241,6 @@ var vdc_actions = { call: oZones.Zone.cluster, callback: function(req, list_json){ var options=''; - options += ''; $.each(list_json,function(){ options += ''; }); @@ -440,7 +439,7 @@ function updateVDCInfo(req,vdc_json){ }; function inCluster(resCluster, selCluster){ - if (selCluster == "-")//cluster none + if (selCluster == "-")//cluster none, unused return resCluster == "-1"; else return resCluster == selCluster; };