summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/asistentes
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2016-11-11 13:23:04 +0000
committeririna <irinagomez@us.es>2016-11-11 13:23:04 +0000
commit26c54b632487395b7f89daf0a71dcee5d8e135aa (patch)
tree8bbf272a29e01a8fa73b68194f9285be3208c3ae /admin/WebConsole/asistentes
parenta91defc750de6e46ea242f876405fcb1afda4f56 (diff)
#757 #763 Asistente DeployImage: se corrige otra errata en el nombre de la imagen
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5087 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/asistentes')
-rw-r--r--admin/WebConsole/asistentes/jscripts/asistentes.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/admin/WebConsole/asistentes/jscripts/asistentes.js b/admin/WebConsole/asistentes/jscripts/asistentes.js
index cc93907b..ea18a922 100644
--- a/admin/WebConsole/asistentes/jscripts/asistentes.js
+++ b/admin/WebConsole/asistentes/jscripts/asistentes.js
@@ -70,13 +70,17 @@ switch (form.idmetodo.value)
protocol="UNICAST-DIRECT";
break;
}
+
+// Datos imagen
+var imagen = form.idimagen.value.split("_");
+
//form.codigo.value="deployImage REPO /";
if (form.modo[0].checked)
{
// UHU - Distinguimos entre disco y particion, el valor de idparticion sera disco;particion. eje. 1;1
var diskPart = form.idparticion.value.split(";");
var imagen = form.idimagen.value.split("_");
- command="deployImage " + form.idimagen.value + " "+diskPart[0]+" " + diskPart[1] + " " + protocol ;
+ command="deployImage " + imagen[0] + " /" + imagen[1] + " "+diskPart[0]+" " + diskPart[1] + " " + protocol ;
form.codigo.value="\
ogEcho log session \"[0] $MSG_SCRIPTS_TASK_START " + command + "\"\n \ " +
command + " \n";
@@ -88,7 +92,7 @@ command + " \n";
}
else
{
- command="updateCache REPO /" + form.idimagen.value + ".img" + " " + protocol ;
+ command="updateCache REPO /" + imagen[1] + ".img" + " " + protocol ;
form.codigo.value="\
ogEcho log session \"[0] $MSG_SCRIPTS_TASK_START " + command +"\"\n \ " +
command + " \n";