[Bug 1874244] [NEW] lshw top-level element is a list, not a dictionary since Eoan

Nikolay Vinogradov 1874244 at bugs.launchpad.net
Wed Apr 22 12:29:59 UTC 2020


Public bug reported:

I'm not sure if this is a bug or a feature, so I'm asking for an
opinion.

As far as I see lshw behaviour has changed since eoan. I suppose it was
introduced by that commit:
https://github.com/lyonel/lshw/commit/135a853c. In bionic it returns
JSON dict, now in Eoan/Focal it returns list:

root at bursting-satyr:~# lshw -json -quiet | head #Bionic
{
  "id" : "bursting-satyr",
  "class" : "system",
  "claimed" : true,
  "description" : "Computer",
  "width" : 64,
  "capabilities" : {
    "smp" : "Symmetric Multi-Processing",
    "vsyscall32" : "32-bit processes"
  },

root at glad-sawfly:~# lshw -json -quiet | head #Eoan, Focal
[
{
  "id" : "glad-sawfly",
  "class" : "system",
  "claimed" : true,
  "description" : "Computer",
  "width" : 64,
  "capabilities" : {
    "smp" : "Symmetric Multi-Processing",
    "vsyscall32" : "32-bit processes
So my question is: is it an unintended side-effect of the fix or long-term format change?

Thanks in advance.

** Affects: lshw (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lshw in Ubuntu.
https://bugs.launchpad.net/bugs/1874244

Title:
  lshw top-level element is a list, not a dictionary since Eoan

Status in lshw package in Ubuntu:
  New

Bug description:
  I'm not sure if this is a bug or a feature, so I'm asking for an
  opinion.

  As far as I see lshw behaviour has changed since eoan. I suppose it
  was introduced by that commit:
  https://github.com/lyonel/lshw/commit/135a853c. In bionic it returns
  JSON dict, now in Eoan/Focal it returns list:

  root at bursting-satyr:~# lshw -json -quiet | head #Bionic
  {
    "id" : "bursting-satyr",
    "class" : "system",
    "claimed" : true,
    "description" : "Computer",
    "width" : 64,
    "capabilities" : {
      "smp" : "Symmetric Multi-Processing",
      "vsyscall32" : "32-bit processes"
    },

  root at glad-sawfly:~# lshw -json -quiet | head #Eoan, Focal
  [
  {
    "id" : "glad-sawfly",
    "class" : "system",
    "claimed" : true,
    "description" : "Computer",
    "width" : 64,
    "capabilities" : {
      "smp" : "Symmetric Multi-Processing",
      "vsyscall32" : "32-bit processes
  So my question is: is it an unintended side-effect of the fix or long-term format change?

  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1874244/+subscriptions



More information about the foundations-bugs mailing list