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.
master v1.3.2-31
Alejandro Sirgo Rica 2025-02-13 12:40:53 +01:00
parent e0ba9cc98c
commit bd190f8d44
1 changed files with 2 additions and 8 deletions

View File

@ -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())