mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
This file sometimes has stupid \x00 inside ~.~
This commit is contained in:
parent
f8154fe23a
commit
c346f5f1df
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class BaseSystemDiagnoser(Diagnoser):
|
|||
|
||||
# Also possibly the board name
|
||||
if os.path.exists("/proc/device-tree/model"):
|
||||
model = read_file('/proc/device-tree/model').strip()
|
||||
model = read_file('/proc/device-tree/model').strip().replace('\x00', '')
|
||||
hardware["data"]["model"] = model
|
||||
hardware["details"] = ["diagnosis_basesystem_hardware_board"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue