luci-app-lldpd: Fix mysterious Command failed: Unknown error
authorPaul Donald <newtwen+github@gmail.com>
Thu, 10 Oct 2024 20:03:46 +0000 (22:03 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 10 Oct 2024 20:04:16 +0000 (22:04 +0200)
commit4988bcd4181aa8bd363baa8506d17809064ee967
tree264dd754d67f844ae8f19f3762030be24f999fda
parent4b84d8ef2539e7045af81caf68b0ef2fb7b4e490
luci-app-lldpd: Fix mysterious Command failed: Unknown error

Executing the following command:

ubus call luci.lldpd getStatus

always returned 'Command failed: Unknown error', but the underlying

lldpcli -f json0 show *

worked fine. Fixed with a chained ?.read?

Tested on 23.05.3

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit c40253ada3d3e0257e1e3796aeab5ad46bc02f5b)
applications/luci-app-lldpd/root/usr/share/rpcd/ucode/luci.lldpd