mirror of https://github.com/apache/cloudstack.git
Deploy vm to specified host through Infrastructure -> Hosts -> <Select one> -> View Instances -> Add Instance
(cherry picked from commit ce2b2a1fc7)
This commit is contained in:
parent
513adab51b
commit
bf9e1ae7e8
|
|
@ -947,7 +947,13 @@
|
|||
keyboard : keyboard
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (g_hostid != null) {
|
||||
$.extend(deployVmData, {
|
||||
hostid : g_hostid
|
||||
});
|
||||
}
|
||||
|
||||
$(window).trigger('cloudStack.deployVirtualMachine', {
|
||||
deployVmData: deployVmData,
|
||||
formData: args.data
|
||||
|
|
|
|||
|
|
@ -325,9 +325,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) {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ var g_username = null;
|
|||
var g_userid = 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