Description of problem: A regression has been detected with the last Fedora 27 update. When outputting the report in json format, the format is broken. See attachment. Version-Release number of selected component (if applicable): lshw-B.02.18-13.fc27.x86_64 How reproducible: Execute the command and try to convert the output to a json object. lshw -json -disable -disable usb -disable pcmcia -disable isapnp -disable ide -disable scsi -disable dmi -disable memory -disable cpuinfo Actual results: Output is in a corrupted json format. Expected results: Additional info:
Created attachment 1393092 [details] lshw usage and output example
Please note that this problem is breaking oVirt hypervisor (lshw is used to detect dpdk interfaces).
You are right, this commit: https://github.com/lyonel/lshw/commit/135a853c60582b14c5b67e5cd988a8062d9896f4 caused JSON breakage. will revert this commit in new update. Please report problem upstream if you wish.
I'd like to report on https://ezix.org/project/newticket?component=lshw but I'm probably just a robot, since I keep failing its captcha.
Hmm. just create a PR @github instead?
lshw-B.02.18-15.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-68585210a5
lshw-B.02.18-15.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-adde265aa6
FYI: I also added a simple test to verify valid JSON from command in comment #1. Thanks for reporting the problem.
lshw-B.02.18-15.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-adde265aa6
lshw-B.02.18-15.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-68585210a5
Tested with lshw-B.02.18-15.fc27 on x86_64, all looks good. Thanks for the quick fix.
lshw-B.02.18-15.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
lshw-B.02.18-15.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.