CLOUDSTACK-4709: UI > template > register template > when zone dropdown is selected as All Zones, show all hypervisors supported in cloudstack instead of only hypervisors available in all zones.

This commit is contained in:
Jessica Wang 2013-09-19 10:19:19 -07:00
parent 3650f12e9b
commit 160d980c72

View File

@ -181,10 +181,13 @@
return;
var apiCmd;
if (args.zone == -1)
apiCmd = "listHypervisors&zoneid=-1";
else
if (args.zone == -1) { //All Zones
//apiCmd = "listHypervisors&zoneid=-1"; //"listHypervisors&zoneid=-1" has been changed to return only hypervisors available in all zones (bug 8809)
apiCmd = "listHypervisors";
}
else {
apiCmd = "listHypervisors&zoneid=" + args.zone;
}
$.ajax({
url: createURL(apiCmd),