CLOUDSTACK-1343: cloudstack UI - baremetal - zone wizard - ask whether to enable the zone or not after zone creation is completed.

This commit is contained in:
Jessica Wang 2013-04-19 12:26:46 -07:00
parent a1ecc7398c
commit 28572345d9
1 changed files with 5 additions and 5 deletions

View File

@ -3052,16 +3052,16 @@
success: function(json) {
args.data.returnedGuestNetwork.returnedVlanIpRange = json.createvlaniprangeresponse.vlan;
//when hypervisor is BareMetal (begin)
if(args.data.zone.hypervisor == "BareMetal") {
alert('Zone creation is completed. Please refresh this page.');
if(args.data.zone.hypervisor == "BareMetal") { //if hypervisor is BareMetal, zone creation is completed at this point.
complete({
data: args.data
});
}
else {
stepFns.addCluster({
data: args.data
});
}
//when hypervisor is BareMetal (end)
}
},
error: function(XMLHttpResponse) {
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);