mirror of https://git.48k.eu/ogserver
client: use image id in last command context
instead of using image id that client reportsmaster
parent
e67cdafb71
commit
1fd62a4850
|
@ -1103,8 +1103,8 @@ static int og_resp_image_create(json_t *data, struct og_client *cli)
|
|||
computer.center);
|
||||
snprintf(soft_legacy.software, sizeof(soft_legacy.software), "%s",
|
||||
software);
|
||||
snprintf(img_legacy.image_id, sizeof(img_legacy.image_id), "%s",
|
||||
image_id);
|
||||
snprintf(img_legacy.image_id, sizeof(img_legacy.image_id), "%u",
|
||||
cli->last_cmd.ctx.image.id);
|
||||
snprintf(soft_legacy.id, sizeof(soft_legacy.id), "%d", computer.id);
|
||||
snprintf(img_legacy.part, sizeof(img_legacy.part), "%s", partition);
|
||||
snprintf(img_legacy.disk, sizeof(img_legacy.disk), "%s", disk);
|
||||
|
@ -1131,7 +1131,7 @@ static int og_resp_image_create(json_t *data, struct og_client *cli)
|
|||
return -1;
|
||||
}
|
||||
|
||||
res = update_image_info(dbi, image_id, clonator, compressor,
|
||||
res = update_image_info(dbi, img_legacy.image_id, clonator, compressor,
|
||||
filesystem, datasize, size, lastupdate, perms,
|
||||
checksum);
|
||||
og_dbi_close(dbi);
|
||||
|
|
Loading…
Reference in New Issue