mirror of https://git.48k.eu/ogclient
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
parent
e0ba9cc98c
commit
bd190f8d44
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue