mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix minor issue with main_space diagnosis: duplicated error/warning, missing / partition when it's on a /dev/loop
This commit is contained in:
parent
f0827451ca
commit
09d306924a
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class SystemResourcesDiagnoser(Diagnoser):
|
|||
|
||||
# Ignore /dev/loop stuff which are ~virtual partitions ? (e.g. mounted to /snap/)
|
||||
disk_partitions = [
|
||||
d for d in disk_partitions if not d.device.startswith("/dev/loop")
|
||||
d for d in disk_partitions if d.mountpoint in ["/", "/var"] or not d.device.startswith("/dev/loop")
|
||||
]
|
||||
|
||||
for disk_partition in disk_partitions:
|
||||
|
@ -139,7 +139,7 @@ class SystemResourcesDiagnoser(Diagnoser):
|
|||
status="ERROR",
|
||||
summary="diagnosis_rootfstotalspace_critical",
|
||||
)
|
||||
if main_space < 14 * GB:
|
||||
elif main_space < 14 * GB:
|
||||
yield dict(
|
||||
meta={"test": "rootfstotalspace"},
|
||||
data={"space": human_size(main_space)},
|
||||
|
|
Loading…
Add table
Reference in a new issue