mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
cloudstack 3.0 UI - deployVM action - not show dialogbox of "password of new VM xxx is yyy" if deployVirtualMachine API doesn't return password (regardless of passwordenabled property).
This commit is contained in:
parent
e5bf243498
commit
64b45722de
@ -503,6 +503,8 @@
|
||||
if (group != null && group.length > 0)
|
||||
array1.push("&group="+todb(group));
|
||||
|
||||
//array1.push("&startVm=false"); //for testing only, comment it out before checking in
|
||||
|
||||
$.ajax({
|
||||
url: createURL("deployVirtualMachine"+array1.join("")),
|
||||
dataType: "json",
|
||||
@ -513,8 +515,8 @@
|
||||
{jobId: jid,
|
||||
getUpdatedItem: function(json) {
|
||||
var item = json.queryasyncjobresultresponse.jobresult.virtualmachine;
|
||||
if (item.passwordenabled == true)
|
||||
alert("Password of new VM " + getVmName(item.name, item.displayname) + " is " + item.password);
|
||||
if (item.password != null)
|
||||
alert("Password of new VM " + item.displayname + " is " + item.password);
|
||||
return item;
|
||||
},
|
||||
getActionFilter: function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user