summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-06-07 09:13:10 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-06-08 10:27:06 +0200
commitc159c76294b6f22386ae619418cec99f4860cc25 (patch)
treeca72b23d42e146fe50be75a3134aa3b3228f5fcf
parent30fdcceea3efbd264b00d78fb0f86fd5a2ff8831 (diff)
live: remove unused parseGetConf function
parseGetConf was necessary for parsing output from OpenGnsys script "getConfiguration", which has been replaced since commit 1ab981a539f3 ("live: replace getConfiguration with refresh")
-rw-r--r--src/live/ogOperations.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 5533312..c93212d 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -88,33 +88,6 @@ class OgLiveOperations:
part_setup['filesystem'] = 'CACHE'
part_setup['code'] = 'ca'
-
- def parseGetConf(self, out):
- parsed = {'serial_number': '',
- 'disk_setup': list(),
- 'partition_setup': list()}
- configs = out.split('\n')
- for line in configs[:-1]:
- if 'ser=' in line:
- parsed['serial_number'] = line.partition('ser=')[2]
- else:
- part_setup = {}
- params = dict(param.split('=') for param in line.split('\t'))
- # Parse partition configuration.
- part_setup['disk'] = params['disk']
- part_setup['disk_type'] = params.get('dtype', '')
- part_setup['partition'] = params['par']
- part_setup['code'] = params['cpt']
- part_setup['filesystem'] = params['fsi']
- part_setup['os'] = params['soi']
- part_setup['size'] = params['tam']
- part_setup['used_size'] = params['uso']
- if part_setup['partition'] == '0':
- parsed['disk_setup'].append(part_setup)
- else:
- parsed['partition_setup'].append(part_setup)
- return parsed
-
def poweroff(self):
logging.info('Powering off client')
if os.path.exists('/scripts/oginit'):