Skip to content

Commit e81e6ef

Browse files
author
Jessica Wang
committed
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.
1 parent 25cf6c9 commit e81e6ef

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎ui/scripts/templates.js‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,13 @@
181181
return;
182182

183183
var apiCmd;
184-
if (args.zone == -1)
185-
apiCmd = "listHypervisors&zoneid=-1";
186-
else
184+
if (args.zone == -1) { //All Zones
185+
//apiCmd = "listHypervisors&zoneid=-1"; //"listHypervisors&zoneid=-1" has been changed to return only hypervisors available in all zones (bug 8809)
186+
apiCmd = "listHypervisors";
187+
}
188+
else {
187189
apiCmd = "listHypervisors&zoneid=" + args.zone;
190+
}
188191

189192
$.ajax({
190193
url: createURL(apiCmd),

0 commit comments

Comments
 (0)