[UI] deploy vm to specified host in Infrastructure->Hosts page

This commit is contained in:
Wei Zhou 2014-07-03 10:47:34 +02:00
parent f6aff77b8e
commit c3cbb7972e
3 changed files with 7 additions and 0 deletions

View File

@ -813,6 +813,9 @@
});
}
if (g_hostid != null)
array1.push("&hostid=" + g_hostid);
$.ajax({
url: createURL('deployVirtualMachine'),
data: deployVmData,

View File

@ -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) {

View File

@ -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;