diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-21 10:06:38 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-21 10:06:38 -0400 |
commit | d818443bec7fe9c9d5c880f47303b19ce2bc398f (patch) | |
tree | 75f33d3abe38c37f881893a91dca1a51bc724482 /cloudinit/net/eni.py | |
parent | 43de8eb4c58aa18518c33e811202b9b322ddfb3c (diff) | |
download | vyos-cloud-init-d818443bec7fe9c9d5c880f47303b19ce2bc398f.tar.gz vyos-cloud-init-d818443bec7fe9c9d5c880f47303b19ce2bc398f.zip |
minor cleanup
Diffstat (limited to 'cloudinit/net/eni.py')
-rw-r--r-- | cloudinit/net/eni.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cloudinit/net/eni.py b/cloudinit/net/eni.py index b93c8616..1fea240d 100644 --- a/cloudinit/net/eni.py +++ b/cloudinit/net/eni.py @@ -357,7 +357,6 @@ class Renderer(renderer.Renderer): subnets = iface.get('subnets', {}) if subnets: for index, subnet in zip(range(0, len(subnets)), subnets): - lines = [] iface['index'] = index iface['mode'] = subnet['type'] iface['control'] = subnet.get('control', 'auto') @@ -368,11 +367,11 @@ class Renderer(renderer.Renderer): if iface['mode'].startswith('dhcp'): iface['mode'] = 'dhcp' - lines.extend(_iface_start_entry(iface, index)) - lines.extend(_iface_add_subnet(iface, subnet)) - lines.extend(_iface_add_attrs(iface)) - - sections.append(lines) + sections.append( + _iface_start_entry(iface, index) + + _iface_add_subnet(iface, subnet) + + _iface_add_attrs(iface) + ) else: # ifenslave docs say to auto the slave devices lines = [] |