summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-02-17 12:05:38 -0500
committerScott Moser <smoser@brickies.net>2017-02-17 12:05:38 -0500
commitda25385d0613b373c5746761748782ca1e157d10 (patch)
tree0750a8c5203d78865655095a3274989cc1e11e0f
parentf81d6c7bde2af206d449de593b35773068270c84 (diff)
downloadvyos-cloud-init-da25385d0613b373c5746761748782ca1e157d10.tar.gz
vyos-cloud-init-da25385d0613b373c5746761748782ca1e157d10.zip
flake8: fix flake8 complaints in previous commit.
-rw-r--r--cloudinit/net/sysconfig.py6
-rw-r--r--tests/unittests/test_net.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
index 19e220ae..6e7739fb 100644
--- a/cloudinit/net/sysconfig.py
+++ b/cloudinit/net/sysconfig.py
@@ -282,12 +282,12 @@ class Renderer(renderer.Renderer):
if len(iface_subnets) == 1:
cls._render_subnet(iface_cfg, route_cfg, iface_subnets[0])
elif len(iface_subnets) > 1:
- for i, iface_subnet in enumerate(iface_subnets,
- start=len(iface_cfg.children)):
+ for i, isubnet in enumerate(iface_subnets,
+ start=len(iface_cfg.children)):
iface_sub_cfg = iface_cfg.copy()
iface_sub_cfg.name = "%s:%s" % (iface_name, i)
iface_cfg.children.append(iface_sub_cfg)
- cls._render_subnet(iface_sub_cfg, route_cfg, iface_subnet)
+ cls._render_subnet(iface_sub_cfg, route_cfg, isubnet)
@classmethod
def _render_bond_interfaces(cls, network_state, iface_contents):
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py
index 1b6288d4..4b03ff72 100644
--- a/tests/unittests/test_net.py
+++ b/tests/unittests/test_net.py
@@ -177,7 +177,7 @@ nameserver 172.19.0.12
"gateway": "172.19.3.254",
}],
"ip_address": "172.19.1.34", "id": "network0"
- },{
+ }, {
"network_id": "private-ipv4",
"type": "ipv4", "netmask": "255.255.255.0",
"link": "tap1a81968a-79",