summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r--cloudinit/netinfo.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py
index 3ba922e8..a6b32c4f 100644
--- a/cloudinit/netinfo.py
+++ b/cloudinit/netinfo.py
@@ -68,16 +68,16 @@ def debug_info(pre="ci-info: "):
lines.append("%s%-6s: %i %-15s %-15s %s" %
(pre, dev, d["up"], d["addr"],d["mask"], d["hwaddr"]))
try:
- routes = route_info()
+ routes = route_info()
except Exception as e:
- lines.append("route_info failed")
- routes = []
+ lines.append("route_info failed")
+ routes = []
n = 0
for r in routes:
- lines.append("%sroute-%d: %-15s %-15s %-15s %-6s %s" %
- (pre, n, r[0], r[1], r[2], r[7], r[3]))
- n = n+1
+ lines.append("%sroute-%d: %-15s %-15s %-15s %-6s %s" %
+ (pre, n, r[0], r[1], r[2], r[7], r[3]))
+ n = n+1
return('\n'.join(lines))
if __name__ == '__main__':
- print debug_info()
+ print debug_info()