From c2cfc811b478facd24e27c3b99d32202ca133a89 Mon Sep 17 00:00:00 2001 From: will Date: Sun, 7 Nov 2010 16:47:18 -0800 Subject: [PATCH] bug 6158: Primary storage will now show ISCSI Share for iscsi primary storage and NFS Share for nfs primary storage. status 6158: resolved fixed --- ui/scripts/cloud.core.primarystorage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.primarystorage.js b/ui/scripts/cloud.core.primarystorage.js index 26808609588..fb5951b8453 100644 --- a/ui/scripts/cloud.core.primarystorage.js +++ b/ui/scripts/cloud.core.primarystorage.js @@ -59,8 +59,10 @@ function primarystorageJsonToDetailsTab($midmenuItem1) { $detailsTab.find("#zonename").text(fromdb(jsonObj.zonename)); $detailsTab.find("#podname").text(fromdb(jsonObj.podname)); - $detailsTab.find("#clustername").text(fromdb(jsonObj.clustername)); - $detailsTab.find("#type").text(fromdb(jsonObj.type)); + $detailsTab.find("#clustername").text(fromdb(jsonObj.clustername)); + var storageType = "ISCSI Share"; + if (jsonObj.type == 'NetworkFilesystem') storageType = "NFS Share"; + $detailsTab.find("#type").text(storageType); $detailsTab.find("#ipaddress").text(fromdb(jsonObj.ipaddress)); $detailsTab.find("#path").text(fromdb(jsonObj.path)); $detailsTab.find("#disksizetotal").text(convertBytes(jsonObj.disksizetotal));