Skip to content

Commit

Permalink
#1008 Add support for several disks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
javsanpar authored and opengnsys-soleta committed Nov 18, 2020
1 parent 29d3d06 commit 91f034e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux/ogOperations.py
Expand Up @@ -27,7 +27,7 @@ def _restartBrowser(self, url):

def parseGetConf(self, out):
parsed = {'serial_number': '',
'disk_setup': '',
'disk_setup': list(),
'partition_setup': list()}
configs = out.split('\n')
for line in configs[:-1]:
Expand All @@ -45,7 +45,7 @@ def parseGetConf(self, out):
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
Expand Down

0 comments on commit 91f034e

Please sign in to comment.