summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-10-31 00:48:05 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-10-31 01:19:46 +0100
commitbff3d1dc9d7c83da14d03f6bf85b4ad7f4f62e9b (patch)
tree1369ca38672d9f65a86c180f989c6a54ba7d3ad0 /src/client.c
parent479998d76f805c02e041adb209857d4ca6b3f87f (diff)
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.
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c2
1 files changed, 2 insertions, 0 deletions
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);