mirror of https://github.com/apache/cloudstack.git
[UI] deploy vm to specified host in Infrastructure->Hosts page
This commit is contained in:
parent
f6aff77b8e
commit
c3cbb7972e
|
|
@ -813,6 +813,9 @@
|
|||
});
|
||||
}
|
||||
|
||||
if (g_hostid != null)
|
||||
array1.push("&hostid=" + g_hostid);
|
||||
|
||||
$.ajax({
|
||||
url: createURL('deployVirtualMachine'),
|
||||
data: deployVmData,
|
||||
|
|
|
|||
|
|
@ -308,9 +308,12 @@
|
|||
}
|
||||
|
||||
if ("hosts" in args.context) {
|
||||
g_hostid = args.context.hosts[0].id;
|
||||
$.extend(data, {
|
||||
hostid: args.context.hosts[0].id
|
||||
});
|
||||
} else {
|
||||
g_hostid = null;
|
||||
}
|
||||
|
||||
if ("affinityGroups" in args.context) {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ var g_role = null; // roles - root, domain-admin, ro-admin, user
|
|||
var g_username = null;
|
||||
var g_account = null;
|
||||
var g_domainid = null;
|
||||
var g_hostid = null;
|
||||
var g_loginCmdText = null;
|
||||
var g_enableLogging = false;
|
||||
var g_timezoneoffset = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue