From 5b56c7fcb57dbfe3e82ba47bbc9ab9dc4c4f3d79 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 12 Dec 2014 23:40:48 +0530 Subject: [PATCH] scripts: Fix UI issue when deploying instance through host view Signed-off-by: Rohit Yadav --- ui/scripts/instanceWizard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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'),