mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #410 from YunoHost/fix_diagnosis_disk_not_available
[fix] was replacing the dictionnary with a string and thus breaking everything
This commit is contained in:
commit
ae6f65141a
1 changed files with 2 additions and 2 deletions
|
@ -573,8 +573,8 @@ def tools_diagnosis(auth, private=False):
|
||||||
else:
|
else:
|
||||||
diagnosis['system']['disks'] = {}
|
diagnosis['system']['disks'] = {}
|
||||||
for disk in disks:
|
for disk in disks:
|
||||||
if isinstance(disk, str):
|
if isinstance(disks[disk], str):
|
||||||
diagnosis['system']['disks'] = disk
|
diagnosis['system']['disks'][disk] = disks[disk]
|
||||||
else:
|
else:
|
||||||
diagnosis['system']['disks'][disk] = 'Mounted on %s, %s (%s free)' % (
|
diagnosis['system']['disks'][disk] = 'Mounted on %s, %s (%s free)' % (
|
||||||
disks[disk]['mnt_point'],
|
disks[disk]['mnt_point'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue