From bd190f8d446978a1c9b49feda322fe10739c12ec Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 13 Feb 2025 12:40:53 +0100 Subject: [PATCH] live: send refresh payload in image restore Send the refresh payload after a completed image restore operation. The fields sent to ogServer are not enough to update the status of the client and the OS installed in a partition does not appear in the database. --- src/live/ogOperations.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 10efc3d..47acdc1 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -599,17 +599,11 @@ class OgLiveOperations: if disk == 1: configure_os(disk, partition) - self.refresh(ogRest) + result = self.refresh(ogRest) logging.info('Image restore command OK') - json_dict = { - 'disk': request.getDisk(), - 'partition': request.getPartition(), - 'image_id': request.getId(), - 'cache': self._get_cache_contents(), - } - return json_dict + return result def image_create(self, request, ogRest): disk = int(request.getDisk())