debug_info exception handling uses wrong data type

Bug #883367 reported by Garrett Holmstrom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Scott Moser

Bug Description

netinfo.debug_info attempts to deal with exceptions raised by netinfo.netdev_info by supplying an empty list when it should use an empty dict instead. See line 67 of netinfo.py.

    try:
        netdev = netdev_info() ## returns a dict
    except Exception as e:
        lines.append("netdev_info failed!")
        netdev = [] ## should be a dict
    for (dev, d) in netdev.iteritems(): ## expects a dict

Related branches

Revision history for this message
Garrett Holmstrom (gholms) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

fixed in rev 476.
Thanks Garret.

Changed in cloud-init:
assignee: nobody → Scott Moser (smoser)
status: New → Fix Committed
importance: Undecided → Medium
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.