summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-17 14:03:29 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-17 14:07:27 +0000
commit76bc6121a0cee508cc3feb1cac85b6a3d093b5cc (patch)
tree87c1be33049e080a1df26598bc31b8e747c0e6a4
parent14e5e6017f42563206dfb6622f2a06dbe4945baa (diff)
downloaddefinitions-76bc6121a0cee508cc3feb1cac85b6a3d093b5cc.tar.gz
Fix line lengths in morphlib/exts/simple-network.configure
Some lines were more than 79 characters long. This was causing ./check --full to fail on master of morph. This commit fixes the lines in question. Change-Id: I80969d2d89d3922e021b716c250796188d7a7f4c
-rwxr-xr-xsimple-network.configure14
1 files changed, 9 insertions, 5 deletions
diff --git a/simple-network.configure b/simple-network.configure
index a347ebf9..61113325 100755
--- a/simple-network.configure
+++ b/simple-network.configure
@@ -52,7 +52,8 @@ class SimpleNetworkConfigurationExtension(cliapp.Application):
if network_config is None:
self.generate_default_network_config(args)
else:
- self.status(msg="Processing NETWORK_CONFIG=%(nc)s", nc=network_config)
+ self.status(msg="Processing NETWORK_CONFIG=%(nc)s",
+ nc=network_config)
stanzas = self.parse_network_stanzas(network_config)
@@ -87,13 +88,16 @@ class SimpleNetworkConfigurationExtension(cliapp.Application):
pass
def generate_default_network_config(self, args):
- """Generate default network configuration: DHCP in all the interfaces"""
+ """Generate default network config: DHCP in all the interfaces"""
- default_network_config_interfaces = "lo:loopback;eth0:dhcp,hostname=$(hostname)"
+ default_network_config_interfaces = "lo:loopback;" \
+ "eth0:dhcp,hostname=$(hostname)"
default_network_config_networkd = "e*:dhcp"
- stanzas_interfaces = self.parse_network_stanzas(default_network_config_interfaces)
- stanzas_networkd = self.parse_network_stanzas(default_network_config_networkd)
+ stanzas_interfaces = self.parse_network_stanzas(
+ default_network_config_interfaces)
+ stanzas_networkd = self.parse_network_stanzas(
+ default_network_config_networkd)
self.generate_interfaces_file(args, stanzas_interfaces)
self.generate_networkd_files(args, stanzas_networkd)