From d818443bec7fe9c9d5c880f47303b19ce2bc398f Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 21 Jun 2016 10:06:38 -0400 Subject: minor cleanup --- cloudinit/net/eni.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'cloudinit') 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 = [] -- cgit v1.2.3