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
commit1d59e1ed885c303d948f19134864c1408fb42fd5 (patch)
tree67358e0b6a16461ec6f5fdd57461b0abb671e95f
parent07dd92e051d36a2ae2ec952178308d6c8ad9820c (diff)
downloadcloud-init-1d59e1ed885c303d948f19134864c1408fb42fd5.tar.gz
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'