summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-11-18 08:19:20 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-11-18 13:11:55 +0100
commit91f034e37121a6ec085fe14a69421793f1fb3087 (patch)
treedbda7cd3457d36122580e2256a7106fef205c97a /src
parent29d3d06a9c1cf74497f86be95ed626a03e0af32b (diff)
#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.
Diffstat (limited to 'src')
-rw-r--r--src/linux/ogOperations.py4
1 files changed, 2 insertions, 2 deletions
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