mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
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:
parent
3650f12e9b
commit
160d980c72
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user