From fa5b37b2a6c2f10d0f380f0da07f23e9288e70f8 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 21 May 2024 11:48:36 +0200 Subject: live: rename variable that stores json body in refresh() Just a simple cleanup. --- src/live/ogOperations.py | 10 +++++----- 1 file 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): -- cgit v1.2.3-18-g5258