diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js index 807f075e228..1b9dd4968cf 100644 --- a/ui/scripts/instanceWizard.js +++ b/ui/scripts/instanceWizard.js @@ -819,8 +819,11 @@ }); } - if (g_hostid != null) - array1.push("&hostid=" + g_hostid); + if (g_hostid != null) { + $.extend(deployVmData, { + hostid: g_hostid + }); + } $.ajax({ url: createURL('deployVirtualMachine'),