mirror of https://github.com/apache/cloudstack.git
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:
parent
a1ecc7398c
commit
28572345d9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue