diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-11-30 21:31:47 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-11-30 21:31:47 -0800 |
commit | 8ca86a7000933ef3daed357d35fef07f7027b5fc (patch) | |
tree | 14aaf74f47d06c96b00a018e814ced4ebfb6a463 /cloudinit/netinfo.py | |
parent | 6e3e3a9a3adb3ba00154fd0a4d1cd179fd7ea56d (diff) | |
download | vyos-cloud-init-8ca86a7000933ef3daed357d35fef07f7027b5fc.tar.gz vyos-cloud-init-8ca86a7000933ef3daed357d35fef07f7027b5fc.zip |
Fix the ipv6 header centering
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r-- | cloudinit/netinfo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py index 3de50a19..a1343031 100644 --- a/cloudinit/netinfo.py +++ b/cloudinit/netinfo.py @@ -229,8 +229,9 @@ def route_pformat(): r['recv-q'], r['send-q'], r['local address'], r['foreign address'], r['state']]) - header = util.center("Route IPv6 info", "+", max_len) route_s = tbl_v6.get_string() + max_len = len(max(route_s.splitlines(), key=len)) + header = util.center("Route IPv6 info", "+", max_len) lines.extend([header, route_s]) return "\n".join(lines) |