[Kimchi-devel] [PATCH] storagepool-add: showing Fibre Channel devices

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Thu Oct 30 16:44:44 UTC 2014


From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>

Fixing a problem in the JS files where getHostPCIDevices
was being used to show the FC devices.

Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.api.js                  | 2 +-
 ui/js/src/kimchi.storagepool_add_main.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index 8a6e416..78ce3ed 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -1018,7 +1018,7 @@ var kimchi = {
         });
     },
 
-    getHostPCIDevices: function(suc, err) {
+    getHostFCDevices: function(suc, err) {
         var url = kimchi.url+'host/devices?_cap=fc_host';
         kimchi.requestJSON({
             url : url,
diff --git a/ui/js/src/kimchi.storagepool_add_main.js b/ui/js/src/kimchi.storagepool_add_main.js
index ffe8fb6..5ef84af 100644
--- a/ui/js/src/kimchi.storagepool_add_main.js
+++ b/ui/js/src/kimchi.storagepool_add_main.js
@@ -142,7 +142,7 @@ kimchi.initStorageAddPage = function() {
         $('.host-partition').addClass('text-help');
     });
 
-    kimchi.getHostPCIDevices(function(data){
+    kimchi.getHostFCDevices(function(data){
         if(data.length>0){
             for(var i=0;i<data.length;i++){
                 data[i].label = data[i].name;
-- 
1.9.3




More information about the Kimchi-devel mailing list