From bcab9e5d0db51bfd6b768614b9fc30b93975f04e Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 30 Dec 2010 16:58:24 -0800 Subject: [PATCH] AddCluster API return an array of embedded objects. This is related UI change. --- ui/scripts/cloud.core.pod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.pod.js b/ui/scripts/cloud.core.pod.js index c25a4624966..d69411fbe3b 100644 --- a/ui/scripts/cloud.core.pod.js +++ b/ui/scripts/cloud.core.pod.js @@ -376,7 +376,7 @@ function bindAddClusterButton($leftmenuItem1) { } else { //if pod node is expanded var $clusterNode = $("#leftmenu_cluster_node_template").clone(true); - var item = json.addclusterresponse.cluster; + var item = json.addclusterresponse.cluster[0]; clusterJSONToTreeNode(item, $clusterNode); $podNode.find("#clusters_container").append($clusterNode.show()); }