diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:42:44 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:42:44 -0500 |
commit | 2f7227c7092ad873757167f62c2a82fb4ee69472 (patch) | |
tree | acc620e1f0423910a4d0ea0d79ee231290e4a393 /cloudinit/netinfo.py | |
parent | 1d00c0936bfc63117493d89268da8c81611b3c40 (diff) | |
parent | ec070cdf8746651d6dea011bd3ea9a445223028c (diff) | |
download | vyos-cloud-init-2f7227c7092ad873757167f62c2a82fb4ee69472.tar.gz vyos-cloud-init-2f7227c7092ad873757167f62c2a82fb4ee69472.zip |
fix pylint warnings (LP: #914739) [Juerg Haefliger]
This merge pulls in Jeurg's 'fix-pylint-warnings.tgz' patchset from
LP: #914739.
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r-- | cloudinit/netinfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py index 9ca72b77..9cfd5ba3 100644 --- a/cloudinit/netinfo.py +++ b/cloudinit/netinfo.py @@ -28,7 +28,7 @@ def netdev_info(): pass for field in ("addr", "bcast", "mask"): target = "%s%s" % (field, fieldpost) - if devs[curdev].get(target,""): + if devs[curdev].get(target, ""): continue if toks[i] == "%s:" % field: try: @@ -54,7 +54,7 @@ def route_info(): def getgateway(): for r in route_info(): if r[3].find("G") >= 0: - return("%s[%s]" % (r[1],r[7])) + return("%s[%s]" % (r[1], r[7])) return(None) def debug_info(pre="ci-info: "): @@ -66,7 +66,7 @@ def debug_info(pre="ci-info: "): 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"])) + (pre, dev, d["up"], d["addr"], d["mask"], d["hwaddr"])) try: routes = route_info() except Exception: |