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

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Thu Nov 6 13:27:00 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 ebf826b..6ac2df3 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