Updated Branches: refs/heads/4.3 4cd5f7dc4 -> df55a8510
CLOUDSTACK-999: hyper-V: UI > Add Primary Storage > when hypervisor type of selected cluster is Hyperv, populate Protocol dropdown with only one option "SMB/cifs". Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/df55a851 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/df55a851 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/df55a851 Branch: refs/heads/4.3 Commit: df55a851095a65911a79735dec82b31bfbbd0152 Parents: 4cd5f7d Author: Jessica Wang <[email protected]> Authored: Thu Nov 14 11:41:32 2013 -0800 Committer: Jessica Wang <[email protected]> Committed: Thu Nov 14 11:41:52 2013 -0800 ---------------------------------------------------------------------- ui/scripts/system.js | 37 +++++++++++++------------------------ ui/scripts/zoneWizard.js | 39 ++++++++++++++------------------------- 2 files changed, 27 insertions(+), 49 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/df55a851/ui/scripts/system.js ---------------------------------------------------------------------- diff --git a/ui/scripts/system.js b/ui/scripts/system.js index bba5321..6062135 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -13524,11 +13524,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "SharedMountPoint", description: "SharedMountPoint" @@ -13549,11 +13545,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "PreSetup", description: "PreSetup" @@ -13570,15 +13562,20 @@ items.push({ id: "nfs", description: "nfs" + }); + items.push({ + id: "vmfs", + description: "vmfs" + }); + args.response.success({ + data: items }); + } else if (selectedClusterObj.hypervisortype == "Hyperv") { + var items = []; items.push({ id: "SMB", description: "SMB/cifs" }); - items.push({ - id: "vmfs", - description: "vmfs" - }); args.response.success({ data: items }); @@ -13587,11 +13584,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "ocfs2", description: "ocfs2" @@ -13604,11 +13597,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "SharedMountPoint", description: "SharedMountPoint" http://git-wip-us.apache.org/repos/asf/cloudstack/blob/df55a851/ui/scripts/zoneWizard.js ---------------------------------------------------------------------- diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js index c5db0f9..f84812e 100755 --- a/ui/scripts/zoneWizard.js +++ b/ui/scripts/zoneWizard.js @@ -1473,11 +1473,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "SharedMountPoint", description: "SharedMountPoint" @@ -1494,11 +1490,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "PreSetup", description: "PreSetup" @@ -1515,11 +1507,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "vmfs", description: "vmfs" @@ -1527,16 +1515,21 @@ args.response.success({ data: items }); + } else if (selectedClusterObj.hypervisortype == "Hyperv") { + var items = []; + items.push({ + id: "SMB", + description: "SMB/cifs" + }); + args.response.success({ + data: items + }); } else if (selectedClusterObj.hypervisortype == "Ovm") { var items = []; items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "ocfs2", description: "ocfs2" @@ -1549,11 +1542,7 @@ items.push({ id: "nfs", description: "nfs" - }); - items.push({ - id: "SMB", - description: "SMB/cifs" - }); + }); items.push({ id: "SharedMountPoint", description: "SharedMountPoint"
