mirror of https://github.com/apache/cloudstack.git
VM wizard - if create network fails, show error message and not proceed deploying VM.
This commit is contained in:
parent
aff0e234b5
commit
74163af295
|
|
@ -460,15 +460,15 @@
|
|||
defaultNetwork = newNetwork.id;
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
isCreateNetworkSuccessful = false;
|
||||
args.response.error("Failed to create new network. Please try again."); //wait for Brian to implement
|
||||
isCreateNetworkSuccessful = false;
|
||||
var errorMsg = "Failed to create new network, unable to proceed to deploy VM. Error: " + parseXMLHttpResponse(XMLHttpResponse);
|
||||
alert(errorMsg);
|
||||
args.response.error(errorMsg); //args.response.error(errorMsg) here doesn't show errorMsg. Waiting for Brian to fix it. use alert(errorMsg) to show errorMsg for now.
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if(isCreateNetworkSuccessful == false) {
|
||||
alert("Failed to create new network, unable to proceed to deploy VM.");
|
||||
if(isCreateNetworkSuccessful == false) {
|
||||
return;
|
||||
}
|
||||
//create new network ends here
|
||||
|
|
|
|||
Loading…
Reference in New Issue