[Kimchi-devel] [PATCH] Bug fix: Display storage pool types properly

Aline Manera alinefm at linux.vnet.ibm.com
Wed Oct 28 11:31:59 UTC 2015


One JS error was preventing the storage pool types to be displayed on UI.
Because the function kimchi.listHostPartitions was not defined due a
conflict in the Ginger Base patches.
This patch restores the JS function to fix the issue.

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 src/wok/plugins/kimchi/ui/js/src/kimchi.api.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js b/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
index 6ffa0df..c55b252 100644
--- a/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
+++ b/src/wok/plugins/kimchi/ui/js/src/kimchi.api.js
@@ -592,6 +592,17 @@ var kimchi = {
         });
     },
 
+    listHostPartitions : function(suc, err) {
+        wok.requestJSON({
+            url : 'plugins/kimchi/host/partitions',
+            type : 'GET',
+            contentType : 'application/json',
+            dataType : 'json',
+            success : suc,
+            error : err
+        });
+    },
+
     getStorageServers: function(type, suc, err) {
         var url = 'plugins/kimchi/storageservers?_target_type=' + type;
         wok.requestJSON({
-- 
2.1.0




More information about the Kimchi-devel mailing list