From 91f034e37121a6ec085fe14a69421793f1fb3087 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 18 Nov 2020 08:19:20 +0100 Subject: #1008 Add support for several disks ogClient expect to receive information of 1 disk from the Cloning Engine's script "getConfiguration". ogAdmClient, the deprecated ogLive client daemon, supported for several disk. Add ogClient support for several disk. --- src/linux/ogOperations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 204699a..ef01d2c 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -27,7 +27,7 @@ class OgLinuxOperations: def parseGetConf(self, out): parsed = {'serial_number': '', - 'disk_setup': '', + 'disk_setup': list(), 'partition_setup': list()} configs = out.split('\n') for line in configs[:-1]: @@ -45,7 +45,7 @@ class OgLinuxOperations: part_setup['size'] = params['tam'] part_setup['used_size'] = params['uso'] if part_setup['partition'] == '0': - parsed['disk_setup'] = part_setup + parsed['disk_setup'].append(part_setup) else: parsed['partition_setup'].append(part_setup) return parsed -- cgit v1.2.3-18-g5258