From 84adb6b5bc3be986e8b391aa5bbad49846f5a880 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 2 Dec 2011 16:42:21 -0800 Subject: [PATCH] bug 12314: cloudStack 3.0 new UI - add cluster action - pass cluster type as ExternalManaged if hypervisor is VMware. --- ui/scripts/system.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 9490ab92f4b..4a55d549b4e 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -5226,7 +5226,14 @@ var array1 = []; array1.push("&zoneId=" + args.context.zones[0].id); array1.push("&hypervisor=" + args.data.hypervisor); - array1.push("&clustertype=CloudManaged"); + + var clusterType; + if(args.data.hypervisor == "VMware") + clusterType="ExternalManaged"; + else + clusterType="CloudManaged"; + array1.push("&clustertype=" + clusterType); + array1.push("&podId=" + args.data.podId); var clusterName = args.data.name;