diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-10-31 11:46:29 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-10-31 11:46:29 -0400 |
commit | 2ba7c951a0e65e4421093cd785894548c3570da1 (patch) | |
tree | 34c5552fe03a2d587a723101bce5966d3b16c2a3 /cloudinit/netinfo.py | |
parent | 1cfa72f7b55ff71e5eeb5820ba0acc4845219fd4 (diff) | |
download | vyos-cloud-init-2ba7c951a0e65e4421093cd785894548c3570da1.tar.gz vyos-cloud-init-2ba7c951a0e65e4421093cd785894548c3570da1.zip |
fix bug in netinfo.debug_info if no network devices available
LP: #883367
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r-- | cloudinit/netinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py index 1b6af7e2..3ba922e8 100644 --- a/cloudinit/netinfo.py +++ b/cloudinit/netinfo.py @@ -63,7 +63,7 @@ def debug_info(pre="ci-info: "): netdev = netdev_info() except Exception as e: lines.append("netdev_info failed!") - netdev = [] + netdev = {} for (dev, d) in netdev.iteritems(): lines.append("%s%-6s: %i %-15s %-15s %s" % (pre, dev, d["up"], d["addr"],d["mask"], d["hwaddr"])) |