summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-10-31 11:46:29 -0400
committerScott Moser <smoser@ubuntu.com>2011-10-31 11:46:29 -0400
commit2ba7c951a0e65e4421093cd785894548c3570da1 (patch)
tree34c5552fe03a2d587a723101bce5966d3b16c2a3 /cloudinit/netinfo.py
parent1cfa72f7b55ff71e5eeb5820ba0acc4845219fd4 (diff)
downloadvyos-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.py2
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"]))