diff options
Diffstat (limited to 'src')
-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): |