[Bug 1711197] [NEW] distro-info returns an object instead of a dictionary which breaks applications relying on it
Andres Rodriguez
andreserl at ubuntu-pe.org
Wed Aug 16 18:31:32 UTC 2017
Public bug reported:
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)
** Affects: distro-info (Ubuntu)
Importance: Undecided
Status: New
--
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