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 | 87199f2812d4ccd3f9a9a5d9458543552f6552d2 (patch) | |
tree | 75f33d3abe38c37f881893a91dca1a51bc724482 | |
parent | 403a6045a84a9c9435f822dd7cc1baef33ad40ab (diff) | |
download | cloud-init-87199f2812d4ccd3f9a9a5d9458543552f6552d2.tar.gz |
minor cleanup
-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 = [] |