[Bug 1711197] Re: distro-info returns an object instead of a dictionary which breaks applications relying on it

Steve Langasek steve.langasek at canonical.com
Wed Aug 16 18:40:56 UTC 2017


Benjamin, we see that you made this API change as part of addressing bug
#1253208.  Do you see a fundamental reason not to continue supporting
the old API?

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

Title:
  distro-info returns an object instead of a dictionary which breaks
  applications relying on it

Status in distro-info package in Ubuntu:
  New

Bug description:
  A new version of distro-info has just broken all applications that
  rely on the python module. One of this applications is MAAS.

  Example:

  # In Xenial, you would do something like:

  from distro_info import UbuntuDistroInfo
  info = UbuntuDistroInfo()
  for row in info._avail(info._date):
      print(row['series'])

  # In Artful, this no longer works. It would have to be done like:

  from distro_info import UbuntuDistroInfo
  info = UbuntuDistroInfo()
  for row in info._avail(info._date):
      print(row.series)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/distro-info/+bug/1711197/+subscriptions



More information about the foundations-bugs mailing list