diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-05-21 11:48:36 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-05-21 11:51:29 +0200 |
commit | fa5b37b2a6c2f10d0f380f0da07f23e9288e70f8 (patch) | |
tree | 5d968c1d21c87bfbfbfced8a825f30e5dc4338c5 /src/live | |
parent | b9ca7278a9501119eb4690cdf603093d993c5e39 (diff) |
live: rename variable that stores json body in refresh()
Just a simple cleanup.
Diffstat (limited to 'src/live')
-rw-r--r-- | src/live/ogOperations.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 8c8b67a..c52699e 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -546,7 +546,7 @@ class OgLiveOperations: disks = get_disks() interface = os.getenv('DEVICE') link = ethtool(interface) - parsed = { 'serial_number': '', + json_body = { 'serial_number': '', 'disk_setup': [], 'partition_setup': [], 'link': link @@ -561,20 +561,20 @@ class OgLiveOperations: continue self._refresh_payload_disk(cxt, part_setup, num_disk) - parsed['disk_setup'].append(part_setup) + json_body['disk_setup'].append(part_setup) for pa in cxt.partitions: part_setup = part_setup.copy() self._refresh_payload_partition(cxt, pa, part_setup, disk) self._refresh_part_setup_cache(cxt, pa, part_setup, cache) - parsed['partition_setup'].append(part_setup) + json_body['partition_setup'].append(part_setup) - generate_menu(parsed['partition_setup']) + generate_menu(json_body['partition_setup']) generate_cache_txt() self._restartBrowser(self._url) logging.info('Sending response to refresh request') - return parsed + return json_body def probe(self, ogRest): |