[Bug 1711197] Re: 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:44:02 UTC 2017
Other areas this doesn't work anymore:
ubuntu = UbuntuDistroInfo()
ubuntu._rows
...
AttributeError: 'UbuntuDistroInfo' object has no attribute '_rows'
--
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