From bff3d1dc9d7c83da14d03f6bf85b4ad7f4f62e9b Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 31 Oct 2024 00:48:05 +0100 Subject: client: remove image stub entry image creation registration fails if client succeeds to create the image but server fails to register this image, then remove the image stub in the database. --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index 2480768..18a3784 100644 --- a/src/client.c +++ b/src/client.c @@ -1422,6 +1422,8 @@ int og_agent_state_process_response(struct og_client *cli) break; case OG_CMD_IMAGE_CREATE: err = og_resp_image_create(root, cli); + if (err < 0) + og_resp_image_create_error(cli); break; case OG_CMD_IMAGE_RESTORE: err = og_resp_image_restore(root, cli); -- cgit v1.2.3-18-g5258