mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] was replacing the dictionnary with a string and thus breaking everything
This commit is contained in:
parent
f20ef340dc
commit
0922568d64
1 changed files with 2 additions and 2 deletions
|
@ -570,8 +570,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