summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-14 15:18:53 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-14 15:18:53 -0400
commit632d56a23a947a23e18fa234d675e34a1a119593 (patch)
tree67358e0b6a16461ec6f5fdd57461b0abb671e95f
parent780f88f4dd8ddd36c54e217ea5af3b18b7339758 (diff)
downloadvyos-cloud-init-632d56a23a947a23e18fa234d675e34a1a119593.tar.gz
vyos-cloud-init-632d56a23a947a23e18fa234d675e34a1a119593.zip
fix pep8 failure introduced in recent commit.
The commit 1232 (Refactor a large part of the networking code) broke pep8.
-rw-r--r--cloudinit/net/eni.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/net/eni.py b/cloudinit/net/eni.py
index a695f5ed..5a90eb32 100644
--- a/cloudinit/net/eni.py
+++ b/cloudinit/net/eni.py
@@ -391,8 +391,8 @@ class Renderer(object):
iface['control'] = subnet.get('control', 'auto')
if iface['mode'].endswith('6'):
iface['inet'] += '6'
- elif (iface['mode'] == 'static'
- and ":" in subnet['address']):
+ elif (iface['mode'] == 'static' and
+ ":" in subnet['address']):
iface['inet'] += '6'
if iface['mode'].startswith('dhcp'):
iface['mode'] = 'dhcp'