summaryrefslogtreecommitdiff
path: root/cloudinit/net/sysconfig.py
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@redhat.com>2017-02-17 08:55:05 -0500
committerScott Moser <smoser@brickies.net>2017-02-17 11:58:34 -0500
commitf81d6c7bde2af206d449de593b35773068270c84 (patch)
tree0f19ea91e56069ba2de4a9fbd0923b879254285a /cloudinit/net/sysconfig.py
parent91be1d189d9348e81a4c4f1f7d5fc255df1ce6d1 (diff)
downloadvyos-cloud-init-f81d6c7bde2af206d449de593b35773068270c84.tar.gz
vyos-cloud-init-f81d6c7bde2af206d449de593b35773068270c84.zip
net: correct errors in cloudinit/net/sysconfig.py
There were some logic errors in sysconfig.py that appear to be the result of accidentally typing "iface" where it should have been "iface_cfg". This patch corrects those problems so that the module can run successfully. LP: #1665441 Resolves: rhbz#1389530
Diffstat (limited to 'cloudinit/net/sysconfig.py')
-rw-r--r--cloudinit/net/sysconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
index 9be74070..19e220ae 100644
--- a/cloudinit/net/sysconfig.py
+++ b/cloudinit/net/sysconfig.py
@@ -283,10 +283,10 @@ class Renderer(renderer.Renderer):
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.children)):
+ start=len(iface_cfg.children)):
iface_sub_cfg = iface_cfg.copy()
iface_sub_cfg.name = "%s:%s" % (iface_name, i)
- iface.children.append(iface_sub_cfg)
+ iface_cfg.children.append(iface_sub_cfg)
cls._render_subnet(iface_sub_cfg, route_cfg, iface_subnet)
@classmethod