[Bug 1405873] Re: -json output not valid when -class filter used

2020-02-19 Thread Nilson Lopes
There are no fixes yet for Ubuntu 19.10 (Eoan Ermine). sudo lshw -json -quiet | python3 -m json.tool Expecting ',' delimiter: line 26 column 8 (char 792) sudo dpkg -s lshw | grep Version Version: 02.18.85-0.3 -- You received this bug notification because you are a member of Ubuntu Bugs, which i

[Bug 1405873] Re: -json output not valid when -class filter used

2020-02-10 Thread Russell Jones
One can see the full extent of the brokenness of the command (in all versions I've seen) using #!/usr/bin/env python3 from itertools import combinations, chain, repeat from subprocess import check_output as sco import json cmd = ['lshw', '-json', '-quiet'] classes = 'system bus memory processor

[Bug 1405873] Re: -json output not valid when -class filter used

2020-02-07 Thread Russell Jones
https://github.com/lyonel/lshw/tree/B.02.18 outputs valid json with lshw -json -quiet though it does have the problem described in https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1593233 i.e. can only run as root, and crashes otherwise. Using git bisect, the change that broke output was htt

[Bug 1405873] Re: -json output not valid when -class filter used

2020-02-07 Thread Russell Jones
this has actually got worse, as it now (as of 19.10 / 02.18.85-0.3 at least) breaks when no class is used e.g. $ lshw -json -quiet | python3 -m json.tool Expecting ',' delimiter: line 26, column 8 (char 785) lshw -xml | xmllint - seems to indicate xml output works ok, but the format is annoyin

[Bug 1405873] Re: -json output not valid when -class filter used

2018-11-09 Thread Vern Hart
I can confirm, this is still broken. In my output, I'm missing the leading and trailing square bracket. Also, between some stanzas there are close and open curly braces (on the same line) without a comma in between. Since those are the only two syntactical errors in the output I'm working with,

[Bug 1405873] Re: -json output not valid when -class filter used

2018-08-27 Thread Jeff Silverman
Still broken: $ sudo lshw -json -C network | jq . { "id": "network", "class": "network", ... "100bt-fd": "100Mbit/s (full duplex)", "1000bt-fd": "1Gbit/s (full duplex)", "autonegotiation": "Auto-negotiation" } } parse error: Expected value before ',' at

[Bug 1405873] Re: -json output not valid when -class filter used

2018-07-06 Thread Bryan Seitz
Confirmed json output is still broken in various ways. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1405873 Title: -json output not valid when -class filter used To manage notifications about this

[Bug 1405873] Re: -json output not valid when -class filter used

2018-06-12 Thread Bryan Seitz
hmm is this still broken in the latest git? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1405873 Title: -json output not valid when -class filter used To manage notifications about this bug go to:

[Bug 1405873] Re: -json output not valid when -class filter used

2017-04-20 Thread Murat Uenalan
Can confirm, still not fixed in B.02.17 (Xenial). Example: $ sudo lshw -json -c display { [snip .. 3 graphics cards] }, which is not JSON. I think the listing of multiple devices it the unsupport

[Bug 1405873] Re: -json output not valid when -class filter used

2016-04-25 Thread Richard Wall
I'm going to give up on the `lshw -class -json` combination. * https://github.com/ClusterHQ/flocker/pull/2769 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1405873 Title: -json output not valid whe

[Bug 1405873] Re: -json output not valid when -class filter used

2016-04-25 Thread Richard Wall
Broken upstream. There are a bunch of related issues: * http://www.ezix.org/project/query?status=assigned&status=new&status=reopened&component=lshw&description=~json&order=priority -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. http

[Bug 1405873] Re: -json output not valid when -class filter used

2015-06-17 Thread James Saint-Rossy
Seeing the same bugs (Missing array brackets and missing commas in between objects) lsb_release -rd Description:Ubuntu 14.04.2 LTS Release:14.04 lshw -version B.02.16 lshw -json -C storage -C drive -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 1405873] Re: -json output not valid when -class filter used

2015-06-17 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lshw (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1405873 Title: -json