mirror of https://git.48k.eu/ogserver
client: incorrect OS update after restoring image
refresh handler already updates the OS accordingly, remove broken code to update OS that results in reporting no bootable OS after image restoration.master
parent
730d42a872
commit
5cecb4f294
|
@ -1211,11 +1211,10 @@ static int og_resp_image_restore(json_t *data, struct og_client *cli)
|
|||
result = dbi_conn_queryf(dbi->conn,
|
||||
"UPDATE ordenadores_particiones"
|
||||
" SET idimagen=%s, idperfilsoft=%s, fechadespliegue=NOW(),"
|
||||
" revision=(SELECT revision FROM imagenes WHERE idimagen=%s),"
|
||||
" idnombreso=IFNULL((SELECT idnombreso FROM perfilessoft WHERE idperfilsoft=%s),0)"
|
||||
" revision=(SELECT revision FROM imagenes WHERE idimagen=%s)"
|
||||
" WHERE idordenador=%s AND numdisk=%s AND numpar=%s",
|
||||
img_legacy.image_id, img_legacy.software_id,
|
||||
img_legacy.image_id, img_legacy.software_id,
|
||||
img_legacy.image_id,
|
||||
soft_legacy.id, img_legacy.disk, img_legacy.part);
|
||||
if (!result) {
|
||||
dbi_conn_error(dbi->conn, &msglog);
|
||||
|
|
Loading…
Reference in New Issue